Skip to content

Commit

Permalink
Add dev Dockerfile to use local version of rslearn when installing de…
Browse files Browse the repository at this point in the history
…pendencies.
  • Loading branch information
favyen2 committed Oct 22, 2024
1 parent 7118199 commit 0e645f0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile.dev
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

0 comments on commit 0e645f0

Please sign in to comment.