Docker file and Caddy file
This commit is contained in:
+17
@@ -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
|
||||
Reference in New Issue
Block a user