2023-06-05 20:16:29 +00:00
|
|
|
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
|
2023-06-05 20:25:39 +00:00
|
|
|
RUN chmod +x /app/commander.py
|
2023-06-05 20:16:29 +00:00
|
|
|
VOLUME /data
|
|
|
|
ENTRYPOINT [ "/app/commander.py"]
|
2023-06-05 20:23:15 +00:00
|
|
|
CMD ["-s", "/data/store.db"]
|