0ptr/Dockerfile
Richard Bronkhorst c02ab63c75 Initial setup
2023-06-05 22:16:29 +02:00

11 lines
300 B
Docker

FROM python:3
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
VOLUME /data
ENTRYPOINT [ "/app/commander.py"]
CMD ["-s", "/data/store.pickle"]