Dockerfile and nginx conf to deploy

This commit is contained in:
2026-05-15 00:05:14 -06:00
parent dcc6c35b2e
commit c1342a9c58
5 changed files with 57 additions and 44 deletions
+17
View File
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1.7
FROM oven/bun:1-alpine AS builder
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun run build
FROM nginx:stable-alpine AS runner
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]