diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-25 19:49:37 +0000 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-25 19:49:37 +0000 |
| commit | 79ef182b6c3efc074422aed01c668bdef2f30676 (patch) | |
| tree | 199feec6ac134021aa3fbe888176e321719a1b21 /Dockerfile | |
| parent | 4228765100aeca3d0ae170621335631ffb784753 (diff) | |
| download | ao-coverage-79ef182b6c3efc074422aed01c668bdef2f30676.tar.gz ao-coverage-79ef182b6c3efc074422aed01c668bdef2f30676.tar.bz2 ao-coverage-79ef182b6c3efc074422aed01c668bdef2f30676.zip | |
Move to Plug'n'Play over node_modules
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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" ] |
