-
Notifications
You must be signed in to change notification settings - Fork 0
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
2 changed files
with
61 additions
and
31 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,13 +1,25 @@ | ||
FROM rocker/geospatial | ||
ENV NB_USER rstudio | ||
ENV VIRTUAL_ENV /opt/venv | ||
|
||
RUN /rocker_scripts/install_jupyter.sh | ||
|
||
COPY requirements.txt requirements.txt | ||
RUN python3 -m pip install -r requirements.txt && rm requirements.txt | ||
COPY install.R install.R | ||
RUN Rscript install.R && rm install.R | ||
RUN python3 -m ipykernel install --user --name=nasa | ||
|
||
# some teaching preferences | ||
RUN git config --global pull.rebase false | ||
|
||
|
||
EXPOSE 8888 | ||
CMD ["/bin/sh", "-c", "jupyter lab --ip 0.0.0.0 --no-browser"] | ||
|
||
RUN chown -R root:staff ${VIRTUAL_ENV} | ||
USER ${NB_USER} | ||
COPY requirements.txt requirements.txt | ||
RUN python3 -m pip install -r requirements.txt && rm requirements.txt | ||
RUN python3 -m ipykernel install --user --name=spatial | ||
|
||
|
||
WORKDIR /home/${NB_USER} | ||
|
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