This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
FROM node:18-alpine
|
FROM node:18-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json* ./
|
COPY package.json package-lock.json* ./
|
||||||
RUN npm install --production
|
|
||||||
COPY . .
|
|
||||||
RUN npm install && npm run build && npm prune --production
|
RUN npm install && npm run build && npm prune --production
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["node","dist/server.js"]
|
CMD ["node","dist/server.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user