Fix Docker build output path and serve with nginx base image
This commit is contained in:
parent
b7be0a6daa
commit
3d627fee34
Binary file not shown.
|
|
@ -16,10 +16,9 @@ COPY . .
|
||||||
RUN yarn build
|
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
|
EXPOSE 80
|
||||||
|
|
||||||
CMD ["sh"]
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue