mirror of
https://github.com/devplayer0/docker-net-dhcp
synced 2024-11-10 13:10:29 +00:00
15 lines
412 B
Docker
15 lines
412 B
Docker
FROM python:3-alpine
|
|
|
|
COPY requirements.txt /opt/
|
|
RUN apk --no-cache add gcc musl-dev && \
|
|
pip install -r /opt/requirements.txt && \
|
|
apk --no-cache del gcc musl-dev
|
|
|
|
RUN mkdir -p /opt/plugin /run/docker/plugins /var/run/docker/netns
|
|
COPY net-dhcp/ /opt/plugin/net_dhcp
|
|
COPY plugin.sh /opt/plugin/launch.sh
|
|
|
|
WORKDIR /opt/plugin
|
|
ENV GUNICORN_OPTS="--log-level=DEBUG"
|
|
ENTRYPOINT [ "/opt/plugin/launch.sh" ]
|