Skip to content

Commit

Permalink
fix(docker): Add missing init.js
Browse files Browse the repository at this point in the history
  • Loading branch information
n0th1ng-else committed Jan 20, 2024
1 parent 1f7021c commit 81f0e6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN npm ci --ignore-scripts && npm cache clean --force

COPY ./src $APP_DIR/src
COPY ./certs $APP_DIR/certs
COPY ./init.cjs $APP_DIR/init.cjs
RUN find "$APP_DIR/src" -type d -name __mocks__ -prune -exec rm -rf {} \;
RUN find "$APP_DIR/src" -type f -name '*.spec.ts' -prune -exec rm -rf {} \;

Expand Down Expand Up @@ -40,6 +41,7 @@ COPY --from=builder $APP_DIR/package-lock.json $APP_DIR
RUN npm ci --omit=dev --ignore-scripts && npm cache clean --force

COPY --from=builder $APP_DIR/dist $APP_DIR/dist
COPY --from=builder $APP_DIR/init.cjs $APP_DIR/init.cjs

USER node

Expand Down

0 comments on commit 81f0e6d

Please sign in to comment.