fix: clean install deps

This commit is contained in:
Troy 2025-03-05 23:33:18 +00:00
parent b26d36f30a
commit 79bdf70ea3
Signed by: troy
GPG key ID: DFC06C02ED3B4711

View file

@ -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