mirror of
https://github.com/johndoe6345789/snippet-pastebin.git
synced 2026-04-24 13:34:55 +00:00
Fix Docker build: Remove non-existent public directory copy
The project doesn't have a public directory and Next.js standalone builds don't create one. Removed the COPY command that was failing on line 30. Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -27,7 +27,7 @@ WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Copy necessary files from builder
|
||||
COPY --from=builder /app/public ./public
|
||||
# Copy public directory only if it exists (optional for projects without public assets)
|
||||
COPY --from=builder /app/.next/standalone ./
|
||||
COPY --from=builder /app/.next/static ./.next/static
|
||||
|
||||
|
||||
Reference in New Issue
Block a user