entrypoint
This commit is contained in:
@@ -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
|
||||||
|
|||||||
5
apps/urubu/docker-entrypoint.sh
Executable file
5
apps/urubu/docker-entrypoint.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
exec "$@"
|
||||||
Reference in New Issue
Block a user