aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2021-09-21 04:46:10 +0000
committerKevin J Hoerr <kjhoerr@protonmail.com>2021-09-21 04:46:10 +0000
commitf4ad093d759e3cd73b43e0d8af377a9a12647cdf (patch)
treed8e2156da251b3c6bad18e609ad24b66f3f4b3e0 /Dockerfile
parent9414d9a8dea1f8635389e46dbf150d01646d6fe4 (diff)
downloadao-coverage-f4ad093d759e3cd73b43e0d8af377a9a12647cdf.tar.gz
ao-coverage-f4ad093d759e3cd73b43e0d8af377a9a12647cdf.tar.bz2
ao-coverage-f4ad093d759e3cd73b43e0d8af377a9a12647cdf.zip
Revert "Copy packages from dependency image in prod build"
This reverts commit 9414d9a8dea1f8635389e46dbf150d01646d6fe4.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 5af1015..9af85dd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,8 +26,8 @@ COPY --from=dependencies /app/.yarnrc.yml ./
COPY --from=dependencies /app/.yarn/releases ./.yarn/releases
COPY --from=dependencies /app/.yarn/cache ./.yarn/cache
COPY --from=dependencies /app/.yarn/plugins ./.yarn/plugins
-COPY --from=dependencies /app/node_modules ./node_modules
-RUN yarn workspaces focus -A --production \
+RUN yarn install \
+ && yarn workspaces focus -A --production \
&& yarn cache clean \
&& rm -r yarn.lock .yarn
COPY --from=build /app/build ./build