Skip to content

Commit

Permalink
fix(docker): reduce size by about half
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperVK authored and JustSamuel committed Oct 29, 2024
1 parent dd9ecf5 commit 73d4385
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ RUN npm install
COPY ./ ./
RUN npm run build \
&& npm run swagger
RUN npm ci --production

# The target image that will be run
FROM node:18-alpine as target

RUN apk add openssl

WORKDIR /app
COPY ./package.json ./package-lock.json ./
RUN npm ci
COPY --from=build --chown=node /app/node_modules /app/node_modules
RUN npm install pm2 pm2-graceful-intercom -g
RUN npm install -g typeorm
ARG TYPEORM_USERNAME
Expand Down

1 comment on commit 73d4385

@JustSamuel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit type should be an build, chore or ci (most suited is build imho) since this should not trigger a version release.

Please sign in to comment.