-
-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from stefmolin/docker-setup
Add Docker setup option
- Loading branch information
Showing
3 changed files
with
69 additions
and
1 deletion.
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,14 @@ | ||
FROM continuumio/miniconda3 | ||
|
||
WORKDIR /workshop | ||
|
||
RUN /opt/conda/bin/conda install jupyter | ||
|
||
COPY environment.yml . | ||
RUN /opt/conda/bin/conda env create --file environment.yml | ||
|
||
COPY . . | ||
|
||
# Run within the container and allow access without token from localhost:8888 | ||
CMD [ "conda", "run", "-n", "pandas_workshop", "jupyter", "lab", \ | ||
"--allow-root", "--ip=0.0.0.0", "--no-browser", "--NotebookApp.token=''" ] |
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
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,7 @@ | ||
services: | ||
workshop: | ||
build: . | ||
ports: | ||
- "8888:8888" | ||
volumes: | ||
- .:/workshop |