Files
gabrielkaszewski-next/Dockerfile
Gabriel Kaszewski 369cd75bfe
Some checks failed
Build and Deploy Gabriel Kaszewski Portfolio / build-and-deploy-local (push) Failing after 7s
static export + nginx, drop runtime server
~800MiB -> ~5MiB RAM
2026-08-08 15:51:24 +02:00

15 lines
280 B
Docker

FROM oven/bun:1 AS build
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
ENV NODE_ENV=production
RUN bun run build
FROM nginx:alpine
COPY --from=build /app/out /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80