Move caddy Dockerfile inline
This commit is contained in:
parent
27cac00293
commit
ee05a37757
3 changed files with 6 additions and 15 deletions
|
|
@ -27,6 +27,12 @@ caddy_compose:
|
|||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile_inline: |
|
||||
FROM caddy:2-builder AS builder
|
||||
RUN xcaddy build \
|
||||
--with github.com/caddy-dns/acmedns@main
|
||||
FROM caddy:2-alpine
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
ports: "{{ caddy_ports }}"
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
FROM caddy:2-builder AS builder
|
||||
|
||||
RUN xcaddy build \
|
||||
--with github.com/caddy-dns/acmedns@main
|
||||
|
||||
FROM caddy:2-alpine
|
||||
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
|
|
@ -10,13 +10,6 @@
|
|||
- name: Import prepare tasks for common service
|
||||
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
|
||||
|
||||
- name: Copy the Dockerfile
|
||||
ansible.builtin.copy:
|
||||
src: Dockerfile
|
||||
dest: "{{ (service_path, 'Dockerfile') | path_join }}"
|
||||
mode: "0644"
|
||||
notify: Rebuild service {{ service_name }}
|
||||
|
||||
- name: Set caddy config path
|
||||
ansible.builtin.set_fact:
|
||||
caddy_config_path: "{{ (service_path, 'config') | path_join }}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue