mirror of
https://github.com/germondai/trawl.git
synced 2026-08-17 12:11:23 +02:00
19 lines
323 B
Docker
19 lines
323 B
Docker
FROM oven/bun:1.3.14-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json ./
|
|
RUN bun --bun install
|
|
|
|
COPY . ./
|
|
RUN bunx --bun nuxt generate
|
|
|
|
FROM nginx:alpine AS runner
|
|
|
|
COPY --from=builder /app/.output/public /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|