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 FROM node:14-alpine
RUN mkdir /app
WORKDIR /app WORKDIR /app
COPY package.json /app COPY . .
COPY yarn.lock /app
RUN yarn --production --pure-lockfile RUN yarn --production --pure-lockfile
COPY . /app
EXPOSE 3000 EXPOSE 3000
CMD yarn start CMD yarn start