Skip to content

Commit

Permalink
Update Node version in Dockerfile to **23**-alpine
Browse files Browse the repository at this point in the history
and modify npm start command.

- Update `FROM node:21-alpine` to `FROM node:23-alpine`.
- Update `RUN sed -i ... package.json` to replace `vite --force` with `vite --force --host`.
- Update `CMD [ "npm", "start" ]` to `CMD [ "npm", "run", "dev" ]`.
  • Loading branch information
flori committed Feb 4, 2025
1 parent 8e7bdf1 commit d78bed3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:21-alpine
FROM node:23-alpine

RUN apk update

Expand All @@ -10,12 +10,12 @@ WORKDIR /app

COPY . .

RUN sed -i -e 's/run dev/run dev -- --host/' package.json
RUN sed -i -e 's/vite --force/vite --force --host/' package.json

RUN npm install

RUN npm run build:azure || true

EXPOSE 5173

CMD [ "npm", "start" ]
CMD [ "npm", "run", "dev" ]

0 comments on commit d78bed3

Please sign in to comment.