From 626faf277835f901f887bb47a4abd65ea71b6c41 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 27 Feb 2022 17:34:15 +0100 Subject: [PATCH] Fix dockerfile --- Dockerfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e357410..1256324 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,23 @@ -FROM node:14-alpine +FROM node:14-alpine as builder WORKDIR /app COPY . . -RUN yarn --production --pure-lockfile +RUN yarn --pure-lockfile RUN yarn run build:static +### + +FROM node:14-alpine + +WORKDIR /app + +COPY . . +COPY --from=builder /app/static /app/static + +RUN yarn --production --pure-lockfile + EXPOSE 3000 CMD yarn start \ No newline at end of file