|
|
|
FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
wget \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN mkdir -p /opt/miniconda3 && \ |
|
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /opt/miniconda3/miniconda.sh && \ |
|
bash /opt/miniconda3/miniconda.sh -b -u -p /opt/miniconda3 && \ |
|
rm /opt/miniconda3/miniconda.sh |
|
|
|
|
|
ENV PATH /opt/miniconda3/bin:$PATH |
|
ENV CONDA_AUTO_UPDATE_CONDA=false |
|
|
|
WORKDIR /opt |
|
|
|
RUN git clone https://github.com/ACE-innovate/wefa-seg-serverless |
|
|
|
|
|
COPY ./anydoor/environment.yaml /tmp/environment.yaml |
|
RUN conda env create -f /tmp/environment.yaml |
|
|
|
|
|
SHELL ["conda", "run", "-n", "anydoor", "/bin/bash", "-c"] |
|
|
|
|
|
CMD ["/bin/bash"] |
|
|