Skip to content

Commit

Permalink
Update Caddy.Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Jun 20, 2024
1 parent aae3b5e commit 28ac551
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Caddy.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
FROM caddy:2.8.4 as caddy

FROM alpine:3.20.1
RUN apk add --no-cache ca-certificates tzdata
COPY --from=caddy /usr/bin/caddy /usr/bin/caddy
COPY --from=caddy:2.8.4 /usr/bin/caddy /usr/bin/caddy
COPY Caddyfile /etc/caddy/Caddyfile

CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"]

0 comments on commit 28ac551

Please sign in to comment.