0ptr/Dockerfile
Richard 74ce884b05 major command staff restructure
Heads had to roll
2024-02-09 15:52:30 +01:00

13 lines
403 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
RUN echo "python3 /app/main.py -d /data" > ~/.bash_history
CMD ["/bin/sh", "-c", "python3 /app/main.py -d /data ; bash -i"]