Update Dockerfile and commander.py

This commit is contained in:
Richard Bronkhorst
2023-06-11 21:17:50 +02:00
parent af73939e03
commit 2346b610a3
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3.10
FROM python:3
RUN useradd -ms /bin/bash user
RUN mkdir /data && chown user /data
USER user
@@ -6,7 +6,7 @@ ADD --chown=user requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip3 install -r requirements.txt
ADD --chown=user . /app
RUN chmod +x /app/main.py
RUN chmod +x /app/commander.py
VOLUME /data
ENTRYPOINT [ "python3", "/app/main.py"]
CMD ["-s", "/data/"]