1
0
mirror of https://github.com/Tecnativa/docker-socket-proxy synced 2024-12-22 06:38:07 +00:00
docker-socket-proxy/Dockerfile

46 lines
1.0 KiB
Docker
Raw Normal View History

2019-07-19 23:32:49 +00:00
ARG REPO=library
FROM ${REPO}/haproxy:1.9-alpine
2017-03-29 09:32:48 +00:00
EXPOSE 2375
ENV ALLOW_RESTARTS=0 \
AUTH=0 \
2017-03-29 09:32:48 +00:00
BUILD=0 \
COMMIT=0 \
CONFIGS=0 \
2017-03-29 09:32:48 +00:00
CONTAINERS=0 \
DISTRIBUTION=0 \
2017-03-29 09:32:48 +00:00
EVENTS=1 \
EXEC=0 \
IMAGES=0 \
INFO=0 \
LOG_LEVEL=info \
2017-03-29 09:32:48 +00:00
NETWORKS=0 \
NODES=0 \
PING=1 \
PLUGINS=0 \
POST=0 \
SECRETS=0 \
SERVICES=0 \
2019-01-21 12:54:21 +00:00
SESSION=0 \
2017-03-29 09:32:48 +00:00
SWARM=0 \
SYSTEM=0 \
TASKS=0 \
VERSION=1 \
VOLUMES=0
2017-03-29 09:32:48 +00:00
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
2020-12-02 14:36:41 +00:00
# Install python/pip
ENV PYTHONUNBUFFERED=1
2020-12-03 15:31:46 +00:00
RUN apk add --update --no-cache python3 && ln -sf $(which python3) /usr/local/bin/python
RUN python -m ensurepip && python -m pip install --no-cache --upgrade pip setuptools
2020-12-02 14:36:41 +00:00
2017-03-29 09:32:48 +00:00
# Metadata
ARG VCS_REF
ARG BUILD_DATE
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.vendor=Tecnativa \
org.label-schema.license=Apache-2.0 \
org.label-schema.build-date="$BUILD_DATE" \
org.label-schema.vcs-ref="$VCS_REF" \
2018-02-19 10:09:22 +00:00
org.label-schema.vcs-url="https://github.com/Tecnativa/docker-socket-proxy"