Files
docker-python3/Dockerfile
2020-10-05 22:54:27 +02:00

31 lines
669 B
Docker

FROM ich777/debian-baseimage
LABEL maintainer="admin@minenet.at"
RUN apt-get update && \
apt-get -y install --no-install-recommends python3 python3-pip python3-setuptools && \
rm -rf /var/lib/apt/lists/*
ENV DATA_DIR="/python3"
ENV PYTHON_SCRIPT="hello.py"
ENV APT_GET=""
ENV PIP3_INSTALL=""
ENV USER_CMD=""
ENV PYTHONUNBUFFERED=1
ENV UMASK=000
ENV UID=99
ENV GID=100
ENV USER="python3"
ENV DATA_PERM=770
RUN mkdir $DATA_DIR && \
useradd -d $DATA_DIR -s /bin/bash $USER && \
chown -R $USER $DATA_DIR && \
ulimit -n 2048
ADD /scripts/ /opt/scripts/
RUN chmod -R 770 /opt/scripts/
COPY /hello.py /tmp/hello.py
#Server Start
ENTRYPOINT ["/opt/scripts/start.sh"]