fix: clean install deps
This commit is contained in:
parent
b26d36f30a
commit
79bdf70ea3
1 changed files with 8 additions and 13 deletions
21
Dockerfile
21
Dockerfile
|
@ -1,17 +1,12 @@
|
|||
FROM node:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json .
|
||||
|
||||
RUN npm ci
|
||||
|
||||
RUN npm i -g serve
|
||||
FROM node:latest as node
|
||||
USER node
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
RUN ["npm", "ci"]
|
||||
RUN ["npm", "run", "build"]
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "serve", "-s", "dist" ]
|
||||
FROM ghcr.io/static-web-server/static-web-server:latest
|
||||
WORKDIR /
|
||||
COPY --from=node /usr/src/app/dist /public
|
||||
|
|
Loading…
Add table
Reference in a new issue