forked from boettiger-lab/nasa-topst-env-justice
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
3 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 |
---|---|---|
@@ -1,20 +1,30 @@ | ||
# devcontainer-focused Rocker | ||
FROM ghcr.io/rocker-org/devcontainer/tidyverse:4.3 | ||
|
||
|
||
ENV NB_USER=rstudio | ||
ENV VIRTUAL_ENV=/opt/venv | ||
ENV PATH=${PATH}:${VIRTUAL_ENV}/bin | ||
ADD https://raw.githubusercontent.com/rocker-org/rocker-versioned2/c1a472465532c8349cf0ad4f3f95c86e85787dc3/scripts/install_python.sh install_python.sh | ||
RUN bash install_python.sh && rm install_python.sh | ||
|
||
|
||
RUN apt-get update && apt-get -y install libxt6 | ||
RUN /rocker_scripts/install_python.sh | ||
ADD https://raw.githubusercontent.com/rocker-org/rocker-versioned2/master/scripts/experimental/install_dev_osgeo.sh install_dev_osgeo.sh | ||
RUN bash install_dev_osgeo.sh && rm install_dev_osgeo.sh | ||
|
||
RUN chown -R rstudio:rstudio /opt/venv | ||
|
||
USER rstudio | ||
WORKDIR /home/rstudio | ||
RUN usermod -s /bin/bash rstudio | ||
|
||
COPY requirements.txt requirements.txt | ||
ENV PATH=$PATH:/home/rstudio/.local/bin | ||
|
||
RUN pip install --user -r requirements.txt && rm requirements.txt | ||
RUN python -m pip install -r requirements.txt && rm requirements.txt | ||
COPY install.R install.R | ||
RUN Rscript install.R && rm install.R | ||
|
||
# some teaching preferences | ||
RUN git config --global pull.rebase false | ||
RUN git config --global pull.rebase false |