0ptr/Dockerfile

13 lines
403 B
Docker
Raw Permalink Normal View History

2023-06-11 19:35:11 +00:00
FROM python:3.10
2023-06-05 20:16:29 +00:00
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
2023-06-11 19:34:19 +00:00
RUN chmod +x /app/main.py
2023-06-05 20:16:29 +00:00
VOLUME /data
2023-12-25 07:05:18 +00:00
#ENTRYPOINT bash
RUN echo "python3 /app/main.py -d /data" > ~/.bash_history
2024-02-03 20:20:04 +00:00
CMD ["/bin/sh", "-c", "python3 /app/main.py -d /data ; bash -i"]