Properly do staging
parent
b78e015a95
commit
0e9e8c6085
@ -0,0 +1,18 @@
|
||||
FROM node:18.2.0-alpine
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm ci
|
||||
RUN npm audit fix
|
||||
RUN npm run staging
|
||||
|
||||
FROM node:18.2.0-alpine
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=0 /app/package*.json ./
|
||||
RUN npm ci --ignore-scripts
|
||||
RUN npm audit fix
|
||||
COPY --from=0 /app/build ./
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["node", "./index.js"]
|
Loading…
Reference in New Issue