Skip to content

Commit

Permalink
feat(Dockerfile): make sharp available
Browse files Browse the repository at this point in the history
  • Loading branch information
alextes committed Dec 12, 2024
1 parent 1df0ed7 commit 4d98716
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ WORKDIR /app
ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1

# make sharp available to the application
COPY --from=build /app/node_modules/sharp /app/node_modules/sharp
ENV NEXT_SHARP_PATH=/usr/local/lib/node_modules/sharp

# You only need to copy next.config.js if you are NOT using the default configuration
COPY --from=build /app/next.config.js ./
COPY --from=build /app/package.json ./package.json
Expand Down

0 comments on commit 4d98716

Please sign in to comment.