„Dockerfile“ hinzufügen

This commit is contained in:
2020-04-12 21:06:32 +02:00
parent 25b2f514ef
commit 7250cfe98f

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM ich777/debian-baseimage
LABEL maintainer="admin@minenet.at"
RUN apt-get update && \
apt-get -y install --no-install-recommends python3 && \
rm -rf /var/lib/apt/lists/*
ENV DATA_DIR="/python3"
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/
#Server Start
ENTRYPOINT ["/opt/scripts/start.sh"]