Add dockerfile
This commit is contained in:
+17
@@ -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
|
||||
Reference in New Issue
Block a user