Dockerfile forces PM2_HOME to be in /app directory

This commit is contained in:
Isaac Abadi
2021-09-30 08:55:38 -06:00
parent b2d8c4ef55
commit 45be270b6f

View File

@@ -36,6 +36,7 @@ RUN apk add --no-cache \
WORKDIR /app
COPY --chown=$UID:$GID [ "backend/package.json", "backend/package-lock.json", "/app/" ]
ENV PM2_HOME=/app/pm2
RUN npm install pm2 -g
RUN npm install && chown -R $UID:$GID ./