|
|
|
FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime |
|
LABEL maintainer vincentqyw |
|
ARG PYTHON_VERSION=3.10.10 |
|
|
|
|
|
WORKDIR /code |
|
|
|
|
|
RUN apt-get update && apt-get install -y git-lfs |
|
RUN git lfs install |
|
|
|
|
|
RUN git clone https://huggingface.co/spaces/Realcat/image-matching-webui /code |
|
|
|
RUN conda create -n imw python=${PYTHON_VERSION} |
|
RUN echo "source activate imw" > ~/.bashrc |
|
ENV PATH /opt/conda/envs/imw/bin:$PATH |
|
|
|
|
|
SHELL ["conda", "run", "-n", "imw", "/bin/bash", "-c"] |
|
RUN pip install --upgrade pip |
|
RUN pip install -r requirements.txt |
|
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y |
|
|
|
|
|
EXPOSE 7860 |
|
|