log101-dot-dev/Dockerfile

12 lines
268 B
Docker

FROM --platform=linux/amd64 oven/bun:1.1.4 AS build
WORKDIR /app
COPY package*.json ./
RUN bun install
COPY . .
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