A couple of dockerfile fixes

This commit is contained in:
TheEssem 2020-12-24 21:32:15 -06:00
parent 9febf3f9d2
commit b73fd3d91b
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ COPY ./package.json package.json
COPY ./package-lock.json package-lock.json
RUN npm install
COPY . .
RUN npm run build
USER esmBot
EXPOSE 3000

View File

@ -50,6 +50,7 @@ RUN fc-cache -f
COPY --chown=node:node ./package.json package.json
COPY --chown=node:node ./package-lock.json package-lock.json
RUN npm install
RUN npm run build
COPY . .
USER esmBot