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