Skip to content

Commit

Permalink
🐛 fix: sharp missing in production (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirname authored Dec 8, 2023
1 parent 909652c commit c8ef782
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ WORKDIR /app
COPY package.json ./

# If you want to build docker in China
#RUN npm config set registry https://registry.npmmirror.com/
# RUN npm config set registry https://registry.npmmirror.com/
RUN pnpm i

# https://nextjs.org/docs/messages/sharp-missing-in-production
ENV NEXT_SHARP_PATH /app/node_modules/sharp

COPY . .
RUN pnpm run build:docker # run build standalone for docker version

Expand Down

0 comments on commit c8ef782

Please sign in to comment.