diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..af91dda --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM oven/bun:alpine AS builder + +WORKDIR /app + +COPY . . +ENV NODE_ENV=production +ENV CI=true +RUN bun install --frozen-lockfile --production + +RUN bun run build + +FROM joseluisq/static-web-server:2-alpine AS runner + +WORKDIR /public + +COPY --from=builder /app/dist . +ENV SERVER_ROOT="/public" + +EXPOSE 80 \ No newline at end of file