27 lines
994 B
Docker
27 lines
994 B
Docker
FROM python:3.12-slim
|
|
WORKDIR /usr/src/app
|
|
COPY . .
|
|
#RUN cp .env.exp .env
|
|
#RUN sed -i 's|SERVER_HOST=127.0.0.1|SERVER_HOST=0.0.0.0|' .env
|
|
|
|
|
|
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
|
|
--mount=target=/var/cache/apt,type=cache,sharing=locked \
|
|
rm -f /etc/apt/apt.conf.d/docker-clean \
|
|
&& apt-get update \
|
|
&& apt-get install ffmpeg libsm6 libxext6 -y
|
|
|
|
|
|
#RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
|
RUN pip install --cache-dir=/tmp/pipcache --upgrade pip
|
|
RUN pip list --cache-dir=/tmp/pipcache --outdated
|
|
RUN pip install --cache-dir=/tmp/pipcache -r requirements.txt
|
|
#RUN pip install pdm
|
|
#RUN pdm install
|
|
#CMD ["pdm", "run", "python3", "main.py"]
|
|
#CMD ["python3", "run.py"]
|
|
#CMD ["python3", "run.py" ,"--threshold 0.5" ,"--file thereneerose_0002.jpg" ,"--rawtag"]
|
|
#CMD ["python3", "run.py" ,"--threshold","0.5" ,"--file", "thereneerose_0002.jpg" ,"--rawtag"]
|
|
|
|
#CMD ["python3 run.py --threshold 0.5 --file thereneerose_0002.jpg --rawtag"]
|