ENV HOME=/usr/src/app (#2382)
Browse filesSet HOME environment variable per Binder requirements.
https://github.com/binder-examples/minimal-dockerfile
- Dockerfile +3 -6
Dockerfile
CHANGED
@@ -5,8 +5,8 @@ FROM nvcr.io/nvidia/pytorch:21.02-py3
|
|
5 |
RUN apt update && apt install -y zip htop screen libgl1-mesa-glx
|
6 |
|
7 |
# Install python dependencies
|
8 |
-
RUN python -m pip install --upgrade pip
|
9 |
COPY requirements.txt .
|
|
|
10 |
RUN pip install --no-cache -r requirements.txt gsutil notebook
|
11 |
|
12 |
# Create working directory
|
@@ -16,11 +16,8 @@ WORKDIR /usr/src/app
|
|
16 |
# Copy contents
|
17 |
COPY . /usr/src/app
|
18 |
|
19 |
-
#
|
20 |
-
|
21 |
-
#attempt_download('weights/yolov5s.pt'); \
|
22 |
-
#attempt_download('weights/yolov5m.pt'); \
|
23 |
-
#attempt_download('weights/yolov5l.pt')"
|
24 |
|
25 |
|
26 |
# --------------------------------------------------- Extras Below ---------------------------------------------------
|
|
|
5 |
RUN apt update && apt install -y zip htop screen libgl1-mesa-glx
|
6 |
|
7 |
# Install python dependencies
|
|
|
8 |
COPY requirements.txt .
|
9 |
+
RUN python -m pip install --upgrade pip
|
10 |
RUN pip install --no-cache -r requirements.txt gsutil notebook
|
11 |
|
12 |
# Create working directory
|
|
|
16 |
# Copy contents
|
17 |
COPY . /usr/src/app
|
18 |
|
19 |
+
# Set environment variables
|
20 |
+
ENV HOME=/usr/src/app
|
|
|
|
|
|
|
21 |
|
22 |
|
23 |
# --------------------------------------------------- Extras Below ---------------------------------------------------
|