Skip to content

Commit

Permalink
chore: simplify the docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
iccicci committed Jun 18, 2024
1 parent fdecb47 commit 936d15e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,11 @@ FROM nodejs-builder as cardano-services-builder
RUN yarn --immutable --inline-builds --mode=skip-build
COPY packages packages
RUN \
echo "export const unused = 'unused';" > packages/e2e/src/index.ts &&\
NODE_OPTIONS=--max_old_space_size=10240 yarn build:cjs
yarn workspace @cardano-sdk/cardano-services build &&\
yarn workspace @cardano-sdk/cardano-services-client build

FROM nodejs-builder as cardano-services-production-deps
FROM nodejs-builder as cardano-services
RUN yarn workspaces focus --all --production

FROM ubuntu-nodejs as cardano-services
COPY --from=cardano-services-production-deps /app/node_modules /app/node_modules
COPY --from=cardano-services-production-deps /app/packages/cardano-services/node_modules /app/packages/cardano-services/node_modules
COPY --from=cardano-services-production-deps /app/packages/core/node_modules /app/packages/core/node_modules
COPY --from=cardano-services-builder /app/scripts /app/scripts
COPY --from=cardano-services-builder /app/packages/cardano-services/dist /app/packages/cardano-services/dist
COPY --from=cardano-services-builder /app/packages/cardano-services/package.json /app/packages/cardano-services/package.json
Expand Down

0 comments on commit 936d15e

Please sign in to comment.