Improve docker builds

This commit is contained in:
Yarmo Mackenbach 2021-10-16 08:33:50 +02:00
parent e4bbadf710
commit a5040cb223
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -1,9 +1,6 @@
FROM node:14
RUN mkdir /app
FROM node:14-alpine
WORKDIR /app
COPY package.json /app
COPY yarn.lock /app
COPY . .
RUN yarn --production --pure-lockfile
COPY . /app
EXPOSE 3000
CMD yarn start
CMD yarn start