services/templates/traefik/Dockerfile.gotmpl
Dan Anglin ba9a865b55
chore(traefik): remove mounted shared directory
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.
2023-08-26 13:25:41 +01:00

9 lines
437 B
Docker

# 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"]