Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

-BREAKING- Update base image to not run as root #43

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ RUN set -ex; \
wget --quiet -O /usr/local/bin/traefik "https://github.com/containous/traefik/releases/download/v1.7.5/traefik_linux-$arch"; \
chmod +x /usr/local/bin/traefik
COPY entrypoint.sh /
EXPOSE 80
EXPOSE 8080
ENTRYPOINT ["/entrypoint.sh"]
CMD ["traefik"]
USER 1001:1001

# Metadata
LABEL org.label-schema.vendor="Containous" \
Expand Down
3 changes: 3 additions & 0 deletions alpine/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/sh
set -e

# Default to a higher port. Can be overridden by specifying the --entrypoints="Name:http Address::<PORT>" again.
set -- --entrypoints="Name:http Address::8080" "$@"

# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- traefik "$@"
Expand Down
3 changes: 2 additions & 1 deletion alpine/tmpl.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ RUN set -ex; \
wget --quiet -O /usr/local/bin/traefik "https://github.com/containous/traefik/releases/download/$VERSION/traefik_linux-${DOLLAR}arch"; \
chmod +x /usr/local/bin/traefik
COPY entrypoint.sh /
EXPOSE 80
EXPOSE 8080
ENTRYPOINT ["/entrypoint.sh"]
CMD ["traefik"]
USER 1001:1001

# Metadata
LABEL org.label-schema.vendor="Containous" \
Expand Down
3 changes: 2 additions & 1 deletion scratch/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM scratch
COPY certs/ca-certificates.crt /etc/ssl/certs/
COPY traefik /
EXPOSE 80
EXPOSE 8080
VOLUME ["/tmp"]
ENTRYPOINT ["/traefik"]
CMD ["--entrypoints=Name:http Address::8080"]

# Metadata
LABEL org.label-schema.vendor="Containous" \
Expand Down
3 changes: 2 additions & 1 deletion scratch/arm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM scratch
COPY certs/ca-certificates.crt /etc/ssl/certs/
COPY traefik /
EXPOSE 80
EXPOSE 8080
VOLUME ["/tmp"]
ENTRYPOINT ["/traefik"]
CMD ["--entrypoints=Name:http Address::8080"]

# Metadata
LABEL org.label-schema.vendor="Containous" \
Expand Down
3 changes: 2 additions & 1 deletion scratch/arm64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM scratch
COPY certs/ca-certificates.crt /etc/ssl/certs/
COPY traefik /
EXPOSE 80
EXPOSE 8080
VOLUME ["/tmp"]
ENTRYPOINT ["/traefik"]
CMD ["--entrypoints=Name:http Address::8080"]

# Metadata
LABEL org.label-schema.vendor="Containous" \
Expand Down
3 changes: 2 additions & 1 deletion scratch/tmpl.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM scratch
COPY certs/ca-certificates.crt /etc/ssl/certs/
COPY traefik /
EXPOSE 80
EXPOSE 8080
VOLUME ["/tmp"]
ENTRYPOINT ["/traefik"]
CMD ["--entrypoints=Name:http Address::8080"]

# Metadata
LABEL org.label-schema.vendor="Containous" \
Expand Down