19 lines
509 B
Docker
19 lines
509 B
Docker
FROM continuumio/miniconda3:latest
|
|
|
|
WORKDIR /workspace/ml-sharp
|
|
COPY ml-sharp .
|
|
|
|
RUN conda create -n sharp python=3.13
|
|
SHELL ["conda", "run", "-n", "sharp", "/bin/bash", "-c"]
|
|
|
|
RUN pip install -r requirements.txt
|
|
RUN pip3 install --no-cache-dir \
|
|
--index-url https://download.pytorch.org/whl/cu130 \
|
|
#--extra-index-url https://mirrors.tencent.com/pytorch-wheels/whl/cu130/ \
|
|
torch \
|
|
torchvision
|
|
|
|
WORKDIR /workspace
|
|
RUN echo "conda activate sharp" >> ~/.profile
|
|
CMD ["/bin/bash", "-l"]
|