-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dev Dockerfile to use local version of rslearn when installing de…
…pendencies.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# The intention for this Dockerfile is to have dev version of rslearn in a subfolder of | ||
# the rslearn_projects repository. | ||
|
||
FROM pytorch/pytorch:2.4.0-cuda11.8-cudnn9-runtime@sha256:58a28ab734f23561aa146fbaf777fb319a953ca1e188832863ed57d510c9f197 | ||
|
||
RUN apt update | ||
RUN apt install -y libpq-dev ffmpeg libsm6 libxext6 git | ||
# COPY instead of git clone. | ||
COPY rslearn/ /opt/rslearn_projects/rslearn/ | ||
RUN pip install --upgrade -r /opt/rslearn_projects/rslearn/requirements.txt | ||
RUN pip install --upgrade -r /opt/rslearn_projects/rslearn/extra_requirements.txt | ||
COPY requirements.txt /opt/rslearn_projects/requirements.txt | ||
RUN pip install --upgrade -r /opt/rslearn_projects/requirements.txt | ||
|
||
ENV PYTHONPATH="${PYTHONPATH}:/opt/rslearn_projects/rslearn:." | ||
|
||
COPY /. /opt/rslearn_projects/ | ||
WORKDIR /opt/rslearn_projects |