0ptr/Dockerfile
Richard Bronkhorst b1e3621490 New store setup
2023-07-10 19:25:01 +02:00

13 lines
333 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 [ "python3", "/app/main.py"]
CMD ["-s", "/data/store.npt"]