Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
# Use an official PyTorch image with CUDA support as the base image
|
2 |
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
|
3 |
|
|
|
|
|
4 |
# Install a specific version of pip (e.g., 20.2.4)
|
5 |
RUN pip install pip==20.2.4
|
6 |
|
@@ -13,7 +15,7 @@ RUN apt-get update && apt-get install -y git libgl1-mesa-glx libglib2.0-0
|
|
13 |
# Set the pip resolver to "legacy"
|
14 |
RUN pip config set global.resolver legacy
|
15 |
|
16 |
-
RUN apt-get update && apt-get install -y ninja-build
|
17 |
|
18 |
# Set up a new user named "user" with user ID 1000
|
19 |
RUN useradd -m -u 1000 user
|
|
|
1 |
# Use an official PyTorch image with CUDA support as the base image
|
2 |
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
|
3 |
|
4 |
+
RUN apt-get update && apt-get install -y build-essential
|
5 |
+
|
6 |
# Install a specific version of pip (e.g., 20.2.4)
|
7 |
RUN pip install pip==20.2.4
|
8 |
|
|
|
15 |
# Set the pip resolver to "legacy"
|
16 |
RUN pip config set global.resolver legacy
|
17 |
|
18 |
+
#RUN apt-get update && apt-get install -y ninja-build
|
19 |
|
20 |
# Set up a new user named "user" with user ID 1000
|
21 |
RUN useradd -m -u 1000 user
|