IOPaint/docker/CPUDockerfile

20 lines
619 B
Plaintext
Raw Normal View History

2023-04-16 15:07:20 +02:00
FROM python:3.10.11-slim-buster
2022-10-05 17:15:09 +02:00
RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common \
libsm6 libxext6 ffmpeg libfontconfig1 libxrender1 libgl1-mesa-glx \
2023-04-16 15:07:20 +02:00
curl gcc build-essential
2022-10-05 17:15:09 +02:00
RUN pip install --upgrade pip && \
2023-04-16 15:07:20 +02:00
pip install torch==1.13.1 torchvision==0.14.1 --extra-index-url https://download.pytorch.org/whl/cpu
2022-11-01 02:09:43 +01:00
ARG version
RUN pip install lama-cleaner==$version
2023-04-16 15:07:20 +02:00
RUN lama-cleaner --install-plugins-package
ENV LD_PRELOAD=/usr/local/lib/python3.10/site-packages/skimage/_shared/../../scikit_image.libs/libgomp-d22c30c5.so.1.0.0
2022-10-05 17:15:09 +02:00
EXPOSE 8080
2022-11-01 02:09:43 +01:00
CMD ["bash"]