website/Dockerfile

12 lines
220 B
Docker
Raw Permalink Normal View History

2024-08-17 15:28:23 +00:00
FROM oven/bun:1 as build
WORKDIR /app
COPY . .
RUN bun install
RUN bun run build
FROM nginx:alpine AS runtime
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080