2022-12-10 15:21:37 +00:00
|
|
|
FROM python:3.10-slim-bullseye
|
2020-03-26 05:10:42 +00:00
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
2022-12-11 15:01:55 +00:00
|
|
|
RUN apt-get update && apt-get install libmagic-dev curl -y
|
2020-03-26 05:10:42 +00:00
|
|
|
|
|
|
|
COPY . .
|
2022-12-10 15:21:37 +00:00
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
2020-03-26 05:10:42 +00:00
|
|
|
|
2022-12-10 15:21:37 +00:00
|
|
|
ENV CONFIG_FILE=/data/config.yaml
|
|
|
|
VOLUME /data
|
2020-03-26 05:10:42 +00:00
|
|
|
WORKDIR /data
|
2022-12-10 15:21:37 +00:00
|
|
|
EXPOSE 5000
|
2022-12-11 15:13:28 +00:00
|
|
|
CMD [ "python", "/usr/src/app/pnut-matrix.py" ]
|