diff --git a/Dockerfile b/Dockerfile index 56933f4..a9d1457 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,9 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . +# Ensure public directory exists +RUN mkdir -p public + # Next.js telemetry ENV NEXT_TELEMETRY_DISABLED=1 @@ -34,7 +37,9 @@ ENV NEXT_TELEMETRY_DISABLED=1 RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs -COPY --from=builder /app/public ./public +# Create public directory and copy contents if they exist +RUN mkdir -p public +COPY --from=builder /app/public/. ./public/ # Set the correct permission for prerender cache RUN mkdir .next diff --git a/public/.gitkeep b/public/.gitkeep deleted file mode 100644 index 8b13789..0000000 --- a/public/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 0000000..6f94917 --- /dev/null +++ b/public/manifest.json @@ -0,0 +1 @@ +{"name":"letsbe-hub"}