All checks were successful
CI / build-test (push) Successful in 1m1s
- Introduce `Dockerfile` for building and serving static site using Bun and Nginx - Add `nginx.conf` for configuring static file caching and routing rules - Expose port 80 for containerized deployment
12 lines
273 B
Docker
12 lines
273 B
Docker
FROM oven/bun:1-alpine AS build
|
|
WORKDIR /app
|
|
COPY package.json bun.lock ./
|
|
RUN bun install --frozen-lockfile
|
|
COPY . .
|
|
RUN bun run build
|
|
|
|
FROM nginx:alpine
|
|
COPY --from=build /app/.vitepress/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|