From 79ef182b6c3efc074422aed01c668bdef2f30676 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Sat, 25 Sep 2021 19:49:37 +0000 Subject: Move to Plug'n'Play over node_modules --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 9af85dd..c9d783f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,13 +23,11 @@ WORKDIR /app 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 COPY --from=dependencies /app/.yarn/plugins ./.yarn/plugins +COPY --from=dependencies /app/.yarn/releases ./.yarn/releases RUN yarn install \ - && yarn workspaces focus -A --production \ - && yarn cache clean \ - && rm -r yarn.lock .yarn + && yarn workspaces focus -A --production COPY --from=build /app/build ./build COPY public ./public @@ -44,4 +42,4 @@ RUN mkdir -p ${HOST_DIR} VOLUME [ "${HOST_DIR}" ] EXPOSE ${PORT} -CMD [ "node", "./build/index.js" ] +CMD [ "yarn", "node", "./build/index.js" ] -- cgit