dejando un momento las dev dependencies en la imagen mientras se compila el ts, luego se borra
Some checks failed
Deploy conversation layer / deploy (push) Failing after 4s
Some checks failed
Deploy conversation layer / deploy (push) Failing after 4s
This commit is contained in:
@@ -3,6 +3,6 @@ WORKDIR /app
|
|||||||
COPY package.json package-lock.json* ./
|
COPY package.json package-lock.json* ./
|
||||||
RUN npm install --production
|
RUN npm install --production
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm install && npm run build && npm prune --production
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["node","dist/server.js"]
|
CMD ["node","dist/server.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user