@@ -10,7 +10,7 @@ FROM --platform=$TARGETPLATFORM python:3.11-slim as python-base
10
10
11
11
ARG TARGETPLATFORM
12
12
13
- # python
13
+ # python
14
14
ENV PYTHONUNBUFFERED=1 \
15
15
# prevents python creating .pyc files
16
16
PYTHONDONTWRITEBYTECODE=1 \
@@ -21,7 +21,7 @@ ENV PYTHONUNBUFFERED=1 \
21
21
\
22
22
# poetry
23
23
# https://python-poetry.org/docs/configuration/#using-environment-variables
24
- POETRY_VERSION=1.6.1 \
24
+ POETRY_VERSION=1.8.4 \
25
25
# make poetry install to this location
26
26
POETRY_HOME="/opt/poetry" \
27
27
# make poetry create the virtual environment in the project's root
@@ -47,10 +47,10 @@ ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
47
47
FROM python-base as builder-base
48
48
RUN apt-get update \
49
49
&& apt-get install --no-install-recommends -y \
50
- # deps for installing poetry
51
- curl \
52
- # deps for building python deps
53
- build-essential
50
+ # deps for installing poetry
51
+ curl \
52
+ # deps for building python deps
53
+ build-essential
54
54
55
55
# install poetry - respects $POETRY_VERSION & $POETRY_HOME
56
56
# The --mount will mount the buildx cache directory to where
@@ -76,8 +76,8 @@ COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH
76
76
77
77
RUN apt-get update && apt-get install -y git
78
78
79
- ADD configs/jupyter_lab_config.py /root/.jupyter/jupyter_lab_config.py
80
- ADD configs/jupytext.toml /root/.config/jupytext.toml
79
+ COPY configs/jupyter_lab_config.py /root/.jupyter/jupyter_lab_config.py
80
+ COPY configs/jupytext.toml /root/.config/jupytext.toml
81
81
82
82
WORKDIR /workshop
83
83
EXPOSE 8888 4141
0 commit comments