Improve Dockerfile

This commit is contained in:
2021-04-05 18:20:01 +02:00
parent 92b08b7643
commit 82febf84c6
3 changed files with 5 additions and 229 deletions

View File

@@ -12,11 +12,14 @@ RUN yarn install
RUN yarn build
WORKDIR /usr/src/artapi/build
RUN yarn install --production
RUN cp .env build
EXPOSE 5555
COPY . .
WORKDIR /usr/src/artapi/build
CMD ["yarn", "start"]