add nginx file to docker container

This commit is contained in:
2025-08-30 23:04:01 +02:00
parent 4926c3b388
commit 19aa35195f
3 changed files with 38 additions and 5 deletions

View File

@@ -1,7 +1,11 @@
FROM nginx
COPY ./dist /usr/share/nginx/html
FROM oven/bun as builder
WORKDIR /app
COPY . .
RUN bun install
RUN bun run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]