mirror of
https://github.com/sileht/bird-lg.git
synced 2024-11-22 06:54:43 +01:00
Add Dockerfiles
This commit is contained in:
parent
ca4550ae74
commit
3e72ecf573
31
Dockerfile.lg
Normal file
31
Dockerfile.lg
Normal 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
24
Dockerfile.lgproxy
Normal 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
5
entrypoint.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
chown "${LGUID}:${LGGID}" /dev/stdout
|
||||
|
||||
exec gunicorn -u "${LGUID}" -g "${LGGID}" -b 0.0.0.0:8000 $@
|
Loading…
Reference in a new issue