fix(#166): fix docker build

This commit is contained in:
tdurieux
2023-02-13 08:14:48 +01:00
parent cff3636523
commit 3ab9b0c7a4
3 changed files with 16 additions and 10 deletions
+2 -3
View File
@@ -5,13 +5,12 @@ EXPOSE $PORT
WORKDIR /app
RUN npm install pm2 -g
RUN pm2 install typescript
RUN npm install pm2 -g && pm2 install typescript && npm cache clean --force;
COPY package.json .
COPY package-lock.json .
RUN npm install
RUN npm install && npm run build && npm cache clean --force
COPY ecosystem.config.js .
COPY healthcheck.js .