feat: build custom caddy with gopkg module
This commit is contained in:
parent
df70dffebe
commit
ec4d28e5d6
4 changed files with 9 additions and 8 deletions
|
@ -26,5 +26,4 @@ jobs:
|
|||
- task: caddy
|
||||
file: ci-images.git/.concourse/tasks/caddy.yml
|
||||
input_mapping:
|
||||
repo: ci-images.git
|
||||
caddy: caddy-release
|
||||
repo: ci-images.git
|
|
@ -10,8 +10,6 @@ image_resource:
|
|||
inputs:
|
||||
- name: repo
|
||||
path: .
|
||||
- name: caddy
|
||||
path: caddy/caddy-release
|
||||
|
||||
params:
|
||||
GITEA_USER: ((gitea-credentials.user))
|
||||
|
|
1
caddy/.gitignore
vendored
1
caddy/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
caddy-release/
|
|
@ -1,9 +1,14 @@
|
|||
FROM gcr.io/distroless/static
|
||||
FROM docker.io/caddy:builder-alpine AS builder
|
||||
|
||||
ADD caddy-release/caddy_*_linux_amd64.tar.gz /usr/local/caddy
|
||||
RUN xcaddy build \
|
||||
--with magnax.ca/caddy/gopkg
|
||||
|
||||
FROM gcr.io/distroless/static AS final
|
||||
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
COPY config/caddy.json /etc/caddy/caddy.json
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENTRYPOINT [ "/usr/local/caddy/caddy" ]
|
||||
ENTRYPOINT [ "/usr/bin/caddy" ]
|
||||
CMD [ "run", "--config=/etc/caddy/caddy.json" ]
|
Loading…
Reference in a new issue