1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-12-22 12:34:42 +01:00

Add Dockerfiles

This commit is contained in:
Guillaume Marsay 2020-06-15 23:04:48 +02:00
parent ca4550ae74
commit 3e72ecf573
3 changed files with 60 additions and 0 deletions

31
Dockerfile.lg Normal file
View file

@ -0,0 +1,31 @@
FROM debian:buster-slim
ENV LGUID 65534
ENV LGGID 65534
EXPOSE 8000
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
python-flask \
traceroute \
netbase \
gunicorn \
python-dnspython \
graphviz \
python-pydot \
python-memcache \
whois
WORKDIR /bird-lg
ADD lg.* /bird-lg/
ADD templates/ /bird-lg/templates/
ADD static/ /bird-lg/static/
ADD toolbox.py /bird-lg/
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["lg:app"]

24
Dockerfile.lgproxy Normal file
View file

@ -0,0 +1,24 @@
FROM debian:buster-slim
ENV LGUID 65534
ENV LGGID 65534
EXPOSE 8000
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
python-flask \
traceroute \
netbase \
gunicorn
WORKDIR /bird-lg
ADD lgproxy.* /bird-lg/
ADD bird.py /bird-lg/
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["lgproxy:app"]

5
entrypoint.sh Normal file
View file

@ -0,0 +1,5 @@
#!/bin/sh
chown "${LGUID}:${LGGID}" /dev/stdout
exec gunicorn -u "${LGUID}" -g "${LGGID}" -b 0.0.0.0:8000 $@