Skip to content

Commit

Permalink
fix: Dockerfile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Oct 24, 2023
1 parent dd81e3c commit c88fc2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ COPY . .

RUN npm run build

ENV NODE_ENV production
RUN npm prune --production
RUN npm prune --omit=dev

FROM node:20-slim as app
ENV NODE_ENV production
WORKDIR /app
# built src without dev dependencies
COPY --from=builder /app ./
# tini is used to handle signals properly, see https://github.com/krallin/tini#using-tini
COPY --from=builder /usr/bin/tini /usr/bin/tini

# copy shared libraries (without having artifacts from apt-get install that is needed to build our application)
COPY --from=builder /usr/lib/**/libcrypto*.so /usr/lib/
COPY --from=builder /usr/lib/**/libssl*.so /usr/lib/
COPY --from=builder /usr/lib/**/libcrypto* /usr/lib/
COPY --from=builder /usr/lib/**/libssl* /usr/lib/

HEALTHCHECK --interval=12s --timeout=12s --start-period=10s CMD npm run healthcheck

Expand Down

0 comments on commit c88fc2b

Please sign in to comment.