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