build(docker): minimize production docker image size by using ubuntu:focal

This commit is contained in:
Amruth Pillai
2022-03-07 21:43:38 +01:00
parent c738f311da
commit b0a295d8bb
15 changed files with 91 additions and 44 deletions

View File

@ -24,8 +24,6 @@ COPY --from=dependencies /app/node_modules ./node_modules
COPY --from=dependencies /app/schema/node_modules ./schema/node_modules
COPY --from=dependencies /app/client/node_modules ./client/node_modules
RUN [[ -e .env ]] && cp .env ./client/.env
RUN pnpm run build:schema
RUN pnpm run build:client