12 lines
No EOL
317 B
Docker
12 lines
No EOL
317 B
Docker
FROM oven/bun:canary-alpine AS build
|
|
WORKDIR /app
|
|
COPY package*.json bun.lock ./
|
|
RUN bun install && bun pm trust --all
|
|
COPY . .
|
|
ENV NODE_ENV=production
|
|
RUN bun run build
|
|
|
|
FROM nginx:alpine AS runtime
|
|
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=build /app/.output/public /usr/share/nginx/html
|
|
EXPOSE 8080 |