File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 61
61
// "customizations": {},
62
62
63
63
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
64
- // "remoteUser": "devcontainer "
64
+ // "remoteUser": "devuser "
65
65
}
Original file line number Diff line number Diff line change 1
1
2
2
FROM nvcr.io/nvidia/pytorch:22.11-py3
3
3
4
+ # Install miniconda
5
+ ENV CONDA_DIR /opt/miniconda/
6
+
7
+ RUN apt clean && \
8
+ rm -rf /var/lib/apt/lists/* && \
9
+ apt-get update && \
10
+ apt-get install -y wget \
11
+ git -y && \
12
+ wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
13
+ /bin/bash ~/miniconda.sh -b -p /opt/miniconda
14
+
15
+ # Add conda to path
16
+ ENV PATH=$CONDA_DIR/bin:$PATH
17
+ RUN conda create -n uw-unet python=3.8
18
+
4
19
RUN rm -rf /workspace/*
5
20
WORKDIR /workspace/uw-unet
6
21
7
22
COPY requirements.txt requirements.txt
8
- RUN pip3 install -r requirements.txt
23
+ RUN echo "source activate uw-unet" >~/.bashrc && \
24
+ /opt/miniconda/envs/uw-unet/bin/pip install -r requirements.txt
9
25
10
26
COPY . .
11
27
You can’t perform that action at this time.
0 commit comments