Skip to content

Commit

Permalink
Refactor Dockerfile to use multi-stage build for improved Caddy image…
Browse files Browse the repository at this point in the history
… handling.
  • Loading branch information
nsouto committed Nov 2, 2023
1 parent 2d1fb58 commit 950661d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions caddy-octane/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ ARG CADDY_TAG=latest
# https://www.docker.com/blog/dockerfiles-now-support-multiple-build-contexts/
# https://github.com/docker/build-push-action#path-context

FROM lostlink/caddy:${CADDY_TAG} AS caddy

FROM lostlink/octane:${OCTANE_TAG}

LABEL maintainer="Nuno Souto <[email protected]>"

ARG CADDY_TAG

COPY --from=lostlink/caddy:${CADDY_TAG} /usr/bin/caddy /usr/bin/caddy
COPY --from=caddy /usr/bin/caddy /usr/bin/caddy

COPY ./etc/supervisor/ /etc/supervisor/
COPY ./etc/caddy/ /etc/caddy/
Expand Down

0 comments on commit 950661d

Please sign in to comment.