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
+4
View File
@@ -0,0 +1,4 @@
dist
node_modules
.git
.DS_Store
+6
View File
@@ -0,0 +1,6 @@
:80 {
root * /srv
encode gzip zstd
try_files {path} /index.html
file_server
}
+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