diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 3f79601..8c8643d 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -23,6 +23,8 @@ COPY --from=deps /app ./ COPY packages/shared ./packages/shared COPY apps/web ./apps/web +RUN mkdir -p apps/web/public + ENV NEXT_TELEMETRY_DISABLED=1 ENV NODE_ENV=production @@ -49,7 +51,7 @@ ENV HOSTNAME="0.0.0.0" RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs -# Copy standalone output from builder +# Copy public & standalone output from builder COPY --from=builder /app/apps/web/public ./apps/web/public COPY --from=builder --chown=nextjs:nodejs /app/apps/web/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/apps/web/.next/static ./apps/web/.next/static diff --git a/apps/web/public/.gitkeep b/apps/web/public/.gitkeep new file mode 100644 index 0000000..644fa74 --- /dev/null +++ b/apps/web/public/.gitkeep @@ -0,0 +1 @@ +# static public assets