1
0
mirror of https://github.com/Tecnativa/docker-socket-proxy synced 2024-12-21 22:28:07 +00:00
docker-socket-proxy/Dockerfile
Jairo Llopis 74c627bb27 Fix build
- Update labels to match those from https://github.com/opencontainers/image-spec/blob/master/annotations.md#pre-defined-annotation-keys
- Add missing build args.
- Remove unneeded python (which was failing to install, BTW) from the image.
- Remove `hooks` folder, which was used to build the image automatically in the Docker Hub. It's done in GitHub Actions now.
2020-12-14 09:16:47 +00:00

39 lines
821 B
Docker

FROM haproxy:1.9-alpine
EXPOSE 2375
ENV ALLOW_RESTARTS=0 \
AUTH=0 \
BUILD=0 \
COMMIT=0 \
CONFIGS=0 \
CONTAINERS=0 \
DISTRIBUTION=0 \
EVENTS=1 \
EXEC=0 \
IMAGES=0 \
INFO=0 \
LOG_LEVEL=info \
NETWORKS=0 \
NODES=0 \
PING=1 \
PLUGINS=0 \
POST=0 \
SECRETS=0 \
SERVICES=0 \
SESSION=0 \
SWARM=0 \
SYSTEM=0 \
TASKS=0 \
VERSION=1 \
VOLUMES=0
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
# Metadata
ARG VCS_REF
ARG BUILD_DATE
LABEL org.opencontainers.image.vendor=Tecnativa \
org.opencontainers.image.licenses=Apache-2.0 \
org.opencontainers.image.created="$BUILD_DATE" \
org.opencontainers.image.revision="$VCS_REF" \
org.opencontainers.image.source="https://github.com/Tecnativa/docker-socket-proxy"