Dan Anglin
ba9a865b55
The mounted shared directory is no longer needed for now so it will removed from all containers that are mounting it. Changes for Traefik: - Build all dynamic configurations inside the Traefik container. - Remove the mount point for the shared directory.
9 lines
437 B
Go Template
9 lines
437 B
Go Template
# syntax=docker/dockerfile:1
|
|
FROM traefik:{{ .Traefik.Version }}
|
|
|
|
RUN --mount=type=bind,source=.,target=/packages \
|
|
mkdir -p {{ .Traefik.StaticConfigDirectory }} {{ .Traefik.DynamicConfigDirectory }} \
|
|
&& cp /packages/traefik.yaml {{ .Traefik.StaticConfigDirectory }}/traefik.yaml \
|
|
&& cp /packages/dynamic_*.yaml {{ .Traefik.DynamicConfigDirectory }}/
|
|
|
|
CMD ["--configfile={{ .Traefik.StaticConfigDirectory }}/traefik.yaml"]
|