mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-26 15:59:46 +03:00
# Conflicts: # {{cookiecutter.project_slug}}/compose/production/traefik/Dockerfile # {{cookiecutter.project_slug}}/compose/production/traefik/traefik.toml
13 lines
368 B
Docker
13 lines
368 B
Docker
FROM traefik:v2.0
|
|
RUN mkdir -p /etc/traefik/acme
|
|
RUN touch /etc/traefik/acme/acme.json
|
|
RUN chmod 600 /etc/traefik/acme/acme.json
|
|
COPY ./compose/production/traefik/traefik.yml /etc/traefik
|
|
|
|
RUN addgroup -g 101 -S traefik
|
|
RUN adduser -S -D -H -u 101 -s /sbin/nologin -G traefik -g traefik traefik
|
|
RUN chown -R traefik /etc/traefik
|
|
|
|
USER traefik
|
|
EXPOSE 8080/tcp 8443/tcp
|