-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 822 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ARG IMAGE_VARIANT=bookworm
ARG PYTHON_VERSION=3.11
FROM python:${PYTHON_VERSION}-${IMAGE_VARIANT} AS py3
RUN wget http://www.mirbsd.org/~tg/Debs/sources.txt/wtf-bookworm.sources
RUN mkdir -p /etc/apt/sources.list.d
RUN mv wtf-bookworm.sources /etc/apt/sources.list.d/
RUN apt-get update && apt-get install --no-install-recommends --yes \
tesseract-ocr tesseract-ocr-spa openjdk-8-jdk
EXPOSE 8888
USER root
WORKDIR /app
COPY poetry.lock pyproject.toml README.md LICENSE /app/
COPY tutorials /app/tutorials
COPY scaledp /app/scaledp
RUN pip3 install poetry
RUN poetry config virtualenvs.create false
RUN poetry install -n --no-ansi
RUN pip3 install jupyterlab
CMD ["jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root" , "--notebook-dir=/app/tutorials", "./tutorials/1.QuickStart.ipynb"]