entrypoint

This commit is contained in:
2020-10-31 22:43:47 +01:00
parent 6419eec2af
commit fef8a517ee
2 changed files with 20 additions and 8 deletions

View File

@@ -1,14 +1,21 @@
FROM python FROM debian:buster-slim
#RUN echo 'Acquire::http::proxy "http://172.23.255.1:3142";' >/etc/apt/apt.conf.d/proxy RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip bash
# Ze APP
RUN pip3 install urubu RUN pip3 install urubu
# CLeanup # CLeanup
#RUN apt-get remove -y --purge ${DEV_PKGS} && \ RUN DEBIAN_FRONTEND=noninteractive apt-get autoremove --purge -y && \
# apt-get autoremove --purge -y && \ DEBIAN_FRONTEND=noninteractive apt-get clean -y && \
# apt-get clean -y && \ rm -rf /var/lib/apt/lists/* && \
# rm -rf /var/lib/apt/lists/* && \ rm -rf /var/cache/apt/* /tmp/* /var/tmp/* /var/log/*
# rm -rf /var/cache/apt/* /tmp/* /var/tmp/* /var/log/*
ADD docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
VOLUME [ "/data" ] VOLUME [ "/data" ]
EXPOSE 8000 EXPOSE 8000

View File

@@ -0,0 +1,5 @@
#!/bin/sh
set -e
exec "$@"