Add dockerfile

This commit is contained in:
2023-09-29 10:14:55 +01:00
parent 9f4dff0417
commit 7628ccc991
3 changed files with 49 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1
FROM oven/bun:1 AS deps
WORKDIR /app
COPY package.json package.json
COPY bun.lockb bun.lockb
RUN bun install
FROM node:18-alpine AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN yarn build
FROM caddy AS runner
COPY --from=builder /app/dist /usr/share/caddy