Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bperel committed Nov 21, 2023
1 parent ccb3748 commit 9987eee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions apps/duckguessr-vue3
Submodule duckguessr-vue3 added at 14367c
16 changes: 10 additions & 6 deletions apps/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,26 @@ FROM pnpm AS api
LABEL org.opencontainers.image.authors="Bruno Perel"

WORKDIR /app
COPY --from=build /app/packages/api/dist/api ./

COPY package.json ./
COPY pnpm-*.yaml ./

COPY --from=build /app/packages/prisma-clients ./packages/prisma-clients
COPY --from=build /app/packages/types ./packages/types
COPY --from=build /app/packages/prisma-clients/dist/ ./packages/prisma-clients
COPY --from=build /app/packages/types/dist/ ./packages/types
COPY --from=build /app/packages/api/dist/api ./packages/api

COPY packages/api/package.json ./
COPY packages/api/translations ./translations
COPY packages/api/package.json ./packages/api
COPY packages/api/translations ./packages/api/translations

RUN --mount=type=cache,id=pnpm-store-web,target=/app/.pnpm-store \
pnpm -r -F ~api... -F !~dm-types i --production
RUN --mount=type=cache,id=pnpm-store,target=/app/.pnpm-store \
pnpm i --production

COPY ./packages/api/routes/demo/*.csv ./routes/demo/
COPY ./packages/api/emails ./emails/
COPY ./packages/api/.env ./.env

EXPOSE 3000

CMD ["node", "index.js"]
CMD ["node", "packages/api/index.js"]

0 comments on commit 9987eee

Please sign in to comment.