Jirubizu / localai-admin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sh: vite: not found

mate1213 opened this issue · comments

Hi!
Maybe I messed up something, but when I try to start the container I get the following error:
sh: vite: not found

I tried to run the npm run dev command on the machine it self without the container, but no luck. The same error there

Any idea what is the cause of this?

Repro steps:

  1. Clone repo
  2. move into repo folder
  3. docker compose up -d --build

Result:
Container start fail

Expected behavior:
Container starts

Br,
Mate

Hi! Maybe I messed up something, but when I try to start the container I get the following error: sh: vite: not found

I tried to run the npm run dev command on the machine it self without the container, but no luck. The same error there

Any idea what is the cause of this?

Repro steps:

1. Clone repo

2. move into repo folder

3. `docker compose up -d --build`

Result: Container start fail

Expected behavior: Container starts

Br, Mate

I am currently at work, but I should be done in about 4 ish hours. I will have a look after, but I suspect that I forgot to have vite be installed automatically

Thank you very much!

Thank you very much!

just realized but you want to do npm install before running it via npm run dev

I am a bit busier than usual so not sure whhen I will get around to adjusting the code to do this automatically, but for now if you wish to run it, simply run npm install before running npm run dev and that should pull all the dependencies including vite

Ok I got this running by using this Dockerfile :
`FROM node:alpine
LABEL authors="jirubizu"

RUN apk update && apk upgrade

RUN mkdir -p /srv/app
COPY . /srv/app

WORKDIR /srv/app

RUN npm install
RUN npm create vite@latest

ENTRYPOINT ["npm", "run", "dev", "--host"]
EXPOSE 8089`