Improve docker builds

This commit is contained in:
Yarmo Mackenbach 2021-11-06 18:48:53 +01:00
parent e9ab9b1d0e
commit 1867491508
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -1,14 +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 run proxy
CMD yarn run proxy