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
|
@ -27,4 +27,3 @@ jobs:
|
||||||
file: ci-images.git/.concourse/tasks/caddy.yml
|
file: ci-images.git/.concourse/tasks/caddy.yml
|
||||||
input_mapping:
|
input_mapping:
|
||||||
repo: ci-images.git
|
repo: ci-images.git
|
||||||
caddy: caddy-release
|
|
|
@ -10,8 +10,6 @@ image_resource:
|
||||||
inputs:
|
inputs:
|
||||||
- name: repo
|
- name: repo
|
||||||
path: .
|
path: .
|
||||||
- name: caddy
|
|
||||||
path: caddy/caddy-release
|
|
||||||
|
|
||||||
params:
|
params:
|
||||||
GITEA_USER: ((gitea-credentials.user))
|
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
|
COPY config/caddy.json /etc/caddy/caddy.json
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/local/caddy/caddy" ]
|
ENTRYPOINT [ "/usr/bin/caddy" ]
|
||||||
CMD [ "run", "--config=/etc/caddy/caddy.json" ]
|
CMD [ "run", "--config=/etc/caddy/caddy.json" ]
|
Loading…
Reference in a new issue