-
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.
Add docker deployment for practicals
- Loading branch information
Showing
6 changed files
with
2,753 additions
and
1,994 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM python:3.8-slim-bookworm as build | ||
|
||
WORKDIR /home/dlcourse | ||
|
||
RUN apt update && apt-get install -y wget \ | ||
gcc \ | ||
bzip2 | ||
|
||
RUN pip install jupyter | ||
|
||
RUN adduser --disabled-password dlcourse | ||
|
||
COPY notebooks/python . | ||
|
||
RUN chown -R dlcourse:dlcourse ./ | ||
|
||
EXPOSE 8888 | ||
|
||
USER dlcourse | ||
|
||
ENTRYPOINT ["jupyter", "lab", "--ip=0.0.0.0", "--no-browser", "--ServerApp.token='f9a3bd4e9f2c3be01cd629154cfb224c2703181e050254b5'", "/home/dlcourse"] |
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,8 @@ | ||
# change to tag :latest, port 5000, and uncomment extra hosts for prod | ||
version: "2.3" | ||
|
||
services: | ||
dljupyter: | ||
build: . | ||
ports: | ||
- "80:8888" |
Oops, something went wrong.