Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit a1b3ae9

Browse files
committed
fix
1 parent 84eb075 commit a1b3ae9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM hexletbasics/base-image
22

3+
ENV COURSE_PATH=/exercises-pre-course-python
4+
35
# Install pipx using apt to avoid externally-managed Python issues
46
RUN apt-get update && apt-get install -y pipx \
57
&& pipx ensurepath \
@@ -8,18 +10,18 @@ RUN apt-get update && apt-get install -y pipx \
810

911
# Update PATH
1012
ENV PATH="/root/.local/bin:${PATH}"
11-
ENV PATH="/exercises-python/bin:${PATH}"
13+
ENV PATH="${COURSE_PATH}/bin:${PATH}"
1214

1315
RUN pipx install uv
1416

1517
ENV UV_PROJECT_ENVIRONMENT=/usr
1618

17-
WORKDIR /exercises-pre-course-python
19+
WORKDIR ${COURSE_PATH}
1820

1921
COPY pyproject.toml uv.lock ./
2022

2123
RUN uv sync --locked
2224

2325
COPY . .
2426

25-
ENV PYTHONPATH=/exercises-python/src
27+
ENV PYTHONPATH=${COURSE_PATH}/src

0 commit comments

Comments
 (0)