Switched to slim node version for production
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
#stage 1
|
#stage 1
|
||||||
FROM node:18 as node
|
FROM node:18-slim as node
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN npm run build:ssr --prod
|
RUN npm run build:ssr --omit=dev
|
||||||
#stage 2
|
#stage 2
|
||||||
FROM node:18
|
FROM node:18-slim
|
||||||
COPY --from=node /app/dist /app/dist
|
COPY --from=node /app/dist /app/dist
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
CMD ["node", "dist/ProjectManager.Frontend/server/main.js"]
|
CMD ["node", "dist/ProjectManager.Frontend/server/main.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user