Fix Docker build output path and serve with nginx base image

This commit is contained in:
hardik 2026-04-13 10:46:59 +05:30
parent b7be0a6daa
commit 3d627fee34
2 changed files with 4 additions and 5 deletions

Binary file not shown.

View File

@ -16,10 +16,9 @@ COPY . .
RUN yarn build
FROM scratch
FROM nginx:1.25-alpine
WORKDIR /app
# Copy compiled assets from the builder stage
COPY --from=builder /app/dist/public /usr/share/nginx/html
COPY --from=builder /app/build ./build
CMD ["sh"]
EXPOSE 80