Skip to content

Commit

Permalink
Add docker deployment for practicals
Browse files Browse the repository at this point in the history
  • Loading branch information
twinkarma committed May 28, 2024
1 parent 0c140c1 commit 2e0f814
Show file tree
Hide file tree
Showing 6 changed files with 2,753 additions and 1,994 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
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"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The contents are hosted by github pages at [https://rse.shef.ac.uk/dl-demystifie

## This course is built using

* Node & npm - Package management
* Node & npm - Package management (Must use Node 16LTS due to vuepress dependency)
* vuepress - Website
* reveal-md - Slides
* google colab - Notebooks (python code)
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
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"
Loading

0 comments on commit 2e0f814

Please sign in to comment.