Skip to content

Commit

Permalink
🔨 build(docker): fix OOM when building docker image (lobehub#2447)
Browse files Browse the repository at this point in the history
* 🐛 fix: OOM when docker build
  • Loading branch information
AnoyiX authored May 10, 2024
1 parent 3fdea68 commit ebcd083
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 @@ -44,8 +44,11 @@ ENV NEXT_PUBLIC_ANALYTICS_UMAMI ""
ENV NEXT_PUBLIC_UMAMI_SCRIPT_URL ""
ENV NEXT_PUBLIC_UMAMI_WEBSITE_ID ""

# Node
ENV NODE_OPTIONS "--max-old-space-size=8192"

RUN npm run build:docker # run build standalone for docker version
# run build standalone for docker version
RUN npm run build:docker

## Production image, copy all the files and run next
FROM base AS runner
Expand Down

0 comments on commit ebcd083

Please sign in to comment.