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
|
FROM node:latest as node
|
||||||
|
USER node
|
||||||
WORKDIR /app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
COPY package.json .
|
|
||||||
|
|
||||||
RUN npm ci
|
|
||||||
|
|
||||||
RUN npm i -g serve
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN npm run build
|
RUN ["npm", "ci"]
|
||||||
|
RUN ["npm", "run", "build"]
|
||||||
|
|
||||||
EXPOSE 3000
|
FROM ghcr.io/static-web-server/static-web-server:latest
|
||||||
|
WORKDIR /
|
||||||
CMD [ "serve", "-s", "dist" ]
|
COPY --from=node /usr/src/app/dist /public
|
||||||
|
|
Loading…
Add table
Reference in a new issue