|
# FROM python:3.9 |
|
# RUN apt update && apt install -y libgl1-mesa-glx imagemagick |
|
|
|
|
|
|
|
# RUN pip install -U pip |
|
# |
|
# |
|
# |
|
# |
|
|
|
|
|
# COPY requirements.txt . |
|
# RUN pip install -r requirements.txt |
|
|
|
# COPY . . |
|
|
|
# |
|
# |
|
# RUN chmod +x ./magick |
|
|
|
# ENV IMAGEMAGICK_BINARY=./magick |
|
|
|
|
|
# EXPOSE 7860 |
|
|
|
# |
|
# CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#现成magick docker镜像测试 |
|
#这个dpokidov/imagemagick 含有magick二进制 |
|
FROM dpokidov/imagemagick |
|
|
|
RUN uvicorn |
|
|
|
# |
|
# RUN apt-get update && apt-get install -y python3.9 libgl1-mesa-glx libglib2.0-dev |
|
|
|
# |
|
# RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 |
|
|
|
# |
|
# RUN apt-get install -y python3-pip |
|
|
|
# |
|
# RUN python3.9 -m pip install --upgrade pip |
|
|
|
# RUN pip install -U pip |
|
|
|
# COPY requirements.txt . |
|
# RUN pip install -r requirements.txt |
|
|
|
# COPY . . |
|
# |
|
# RUN pip install uvicorn |
|
|
|
|
|
|
|
# EXPOSE 7860 |
|
|
|
# RUN pip show uvicorn |
|
# CMD ["/usr/local/lib/Scripts/uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"] |
|
|
|
|
|
|
|
|
|
|
|
|