|
@@ -1,15 +1,15 @@
|
|
|
-FROM python:3.12-alpine
|
|
|
+FROM python:3.12-slim
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
COPY docker/debian.sources /etc/apt/sources.list.d
|
|
|
|
|
|
-COPY watermark_generate .
|
|
|
+COPY watermark_generate ./watermark_generate
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
- apt-get install libgl1 -y && \
|
|
|
+ apt-get install libglib2.0-0 libgl1 -y && \
|
|
|
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn --default-timeout=60 --no-cache-dir -r ./watermark_generate/requirements.txt
|
|
|
|
|
|
EXPOSE 5000
|
|
|
|
|
|
-CMD ["python", "run.py"]
|
|
|
+ENTRYPOINT ["python", "./watermark_generate/run.py"]
|