Skip to content

Commit fb45150

Browse files
committed
Use Caddy for static web runtime
1 parent 1b3cf78 commit fb45150

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/web/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN --mount=type=secret,id=github_token \
1111
COPY packages/web packages/web
1212
RUN pnpm --filter @webapp/web build
1313

14-
FROM nginx:1.27-alpine AS runtime
15-
COPY packages/web/nginx.conf /etc/nginx/conf.d/default.conf
16-
COPY --from=build /app/packages/web/dist /usr/share/nginx/html
14+
FROM caddy:2-alpine AS runtime
15+
COPY packages/web/Caddyfile /etc/caddy/Caddyfile
16+
COPY --from=build /app/packages/web/dist /srv
17+
EXPOSE 80

0 commit comments

Comments
 (0)