glenn-jocher commited on
Commit
c64fe21
·
unverified ·
1 Parent(s): 692e1f3

ENV HOME=/usr/src/app (#2382)

Browse files

Set HOME environment variable per Binder requirements.
https://github.com/binder-examples/minimal-dockerfile

Files changed (1) hide show
  1. 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
- # Copy weights
20
- #RUN python3 -c "from models import *; \
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 ---------------------------------------------------