0ptr/Dockerfile
2023-12-25 08:05:18 +01:00

14 lines
373 B
Docker

FROM python:3.10
RUN useradd -ms /bin/bash user
RUN mkdir /data && chown user /data
USER user
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
VOLUME /data
#ENTRYPOINT bash
ENTRYPOINT [ "python3", "/app/main.py"]
CMD ["-s", "/data/store.npt", "-x", "/data/cmd.hst"]