aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index e6e78c5..1ea7ad3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,12 +20,15 @@ RUN yarn run tsc
FROM node:lts-alpine AS release
WORKDIR /app
-COPY --from=dependencies /app/package.json ./
-COPY --from=dependencies /app/yarn.lock ./
-COPY --from=dependencies /app/.yarnrc.yml ./
+COPY --from=dependencies /app/package.json ./
+COPY --from=dependencies /app/yarn.lock ./
+COPY --from=dependencies /app/.yarnrc.yml ./
COPY --from=dependencies /app/.yarn/releases ./.yarn/releases
COPY --from=dependencies /app/.yarn/cache ./.yarn/cache
-RUN yarn install && yarn cache clean
+COPY --from=dependencies /app/.yarn/plugins ./.yarn/plugins
+RUN yarn install \
+ && yarn workspaces focus -A --production \
+ && yarn cache clean
COPY --from=build /app/build ./build
COPY public ./public