From 186749150862ad5b5b7c088df16b22887e857372 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 6 Nov 2021 18:48:53 +0100 Subject: [PATCH] Improve docker builds --- docker/proxy/Dockerfile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/docker/proxy/Dockerfile b/docker/proxy/Dockerfile index de9f919..53a0250 100644 --- a/docker/proxy/Dockerfile +++ b/docker/proxy/Dockerfile @@ -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 \ No newline at end of file