This commit is contained in:
Guillaume Marsay 2022-01-28 14:35:55 +01:00 committed by GitHub
commit 10651a772c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 $@