Skip to content

Commit 3d25548

Browse files
Dockerized
1 parent 3267a3c commit 3d25548

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM python:3.7.6
2+
ENV SOURCE_PATH /curso
3+
WORKDIR $SOURCE_PATH
4+
COPY Pipfile* $SOURCE_PATH/
5+
6+
COPY . .
7+
8+
RUN pip install pipenv
9+
RUN pip install jupyter
10+
RUN pipenv install --dev
11+
RUN pipenv install ipykernel
12+
RUN pipenv run python -m ipykernel install --user --name='libropython'

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: '3.7'
2+
3+
services:
4+
curso:
5+
build: .
6+
volumes:
7+
- .:/curso
8+
ports:
9+
- 8888:8888
10+
command: pipenv run jupyter notebook notebooks --ip='0.0.0.0' --allow-root

0 commit comments

Comments
 (0)