Skip to content

Commit

Permalink
ENV HOME=/usr/src/app (#2382)
Browse files Browse the repository at this point in the history
Set HOME environment variable per Binder requirements. 
https://github.com/binder-examples/minimal-dockerfile
  • Loading branch information
glenn-jocher authored Mar 5, 2021
1 parent 692e1f3 commit c64fe21
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ FROM nvcr.io/nvidia/pytorch:21.02-py3
RUN apt update && apt install -y zip htop screen libgl1-mesa-glx

# Install python dependencies
RUN python -m pip install --upgrade pip
COPY requirements.txt .
RUN python -m pip install --upgrade pip
RUN pip install --no-cache -r requirements.txt gsutil notebook

# Create working directory
Expand All @@ -16,11 +16,8 @@ WORKDIR /usr/src/app
# Copy contents
COPY . /usr/src/app

# Copy weights
#RUN python3 -c "from models import *; \
#attempt_download('weights/yolov5s.pt'); \
#attempt_download('weights/yolov5m.pt'); \
#attempt_download('weights/yolov5l.pt')"
# Set environment variables
ENV HOME=/usr/src/app


# --------------------------------------------------- Extras Below ---------------------------------------------------
Expand Down

0 comments on commit c64fe21

Please sign in to comment.