File size: 946 Bytes
0c59880 eea8147 4125ecd 904f32a 0c59880 5f0c24c 0c59880 5f0c24c 0c59880 5f0c24c 0c59880 00fe36b 0c59880 5f0c24c 0c59880 5f0c24c 0c59880 d63f5fb 89b5f45 ff465c7 0c59880 eea8147 e680d0e 9672c1c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# FROM python:3.9
# RUN apt update && apt install -y libgl1-mesa-glx imagemagick
# RUN pip install -U pip
# # #RUN pip install -U pyyaml
# # RUN pip install -U runway-python
# # #runway --force-reinstall
# # #RUN pip install -U tensorflow
# COPY requirements.txt .
# RUN pip install -r requirements.txt
# COPY . .
# #目前的写法是成功找到了magick文件并且python可以执行,就是magick文件没有找对
# # 修改 magick 文件的执行权限
# RUN chmod +x ./magick
# ENV IMAGEMAGICK_BINARY=./magick
# EXPOSE 7860
# #compo-singleone-v1-dev-acc.py
# CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
#现成magick docker镜像测试
FROM dpokidov/imagemagick
RUN magick -h
RUN pip install -U pip
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
EXPOSE 7860
#compo-singleone-v1-dev-acc.py
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|