Docker file and Caddy file

This commit is contained in:
2026-05-19 02:25:16 +00:00
parent d543466168
commit 4bac1983f1
3 changed files with 27 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM oven/bun:1.2.10 AS build
WORKDIR /app
COPY package.json ./
COPY bun.lock tsconfig.json bunfig.toml build.ts ./
COPY src ./src
RUN bun install
RUN bun run build
FROM caddy:2.8-alpine
COPY Caddyfile /etc/caddy/Caddyfile
COPY --from=build /app/dist /srv
EXPOSE 80