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,15 +1,22 @@
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
# CLeanup
#RUN apt-get remove -y --purge ${DEV_PKGS} && \
# apt-get autoremove --purge -y && \
# apt-get clean -y && \
# rm -rf /var/lib/apt/lists/* && \
# rm -rf /var/cache/apt/* /tmp/* /var/tmp/* /var/log/*
RUN DEBIAN_FRONTEND=noninteractive apt-get autoremove --purge -y && \
DEBIAN_FRONTEND=noninteractive apt-get clean -y && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/apt/* /tmp/* /var/tmp/* /var/log/*
ADD docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
VOLUME [ "/data" ]
EXPOSE 8000
CMD ["make", "serve"]

View File

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