Skip to content

Commit

Permalink
Update base image in Dockerfile
Browse files Browse the repository at this point in the history
Changed the base image from 'base' to 'node:20-slim' in the Dockerfile. This change was required as the 'base' image did not include certain necessary dependencies that 'node:20-slim' includes. These dependencies are essential for the effective running of the application.
  • Loading branch information
claygorman committed Dec 12, 2023
1 parent 05ad16c commit efa468e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /app
FROM base AS build
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile

FROM base
FROM node:20-slim
COPY --from=build /app /app

RUN npm install pm2 -g
Expand Down

0 comments on commit efa468e

Please sign in to comment.