Upload Dockerfile
Browse files- .devcontainer/Dockerfile +22 -0
.devcontainer/Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ubuntu:22.04
|
2 |
+
|
3 |
+
ENV PIP_ROOT_USER_ACTION=ignore
|
4 |
+
WORKDIR /tmp/
|
5 |
+
COPY requirements.txt packages.txt ./
|
6 |
+
|
7 |
+
RUN apt-get -y update && apt-get -y upgrade
|
8 |
+
RUN xargs apt -y install < packages.txt
|
9 |
+
|
10 |
+
RUN wget -v https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb && dpkg -i cuda-keyring_1.1-1_all.deb && apt-get -y update && apt-get -y install cuda-toolkit-12-8
|
11 |
+
|
12 |
+
RUN wget -v https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb && dpkg -i cuda-keyring_1.1-1_all.deb && apt-get -y update && apt-get -y install cudnn
|
13 |
+
|
14 |
+
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
|
15 |
+
|
16 |
+
RUN rm -f /usr/lib/python3.12/EXTERNALLY-MANAGED
|
17 |
+
RUN pip3 install --no-cache-dir -r requirements.txt
|
18 |
+
|
19 |
+
RUN apt-get clean
|
20 |
+
RUN rm -rf /tmp/*
|
21 |
+
|
22 |
+
CMD ["bash"]
|