Skip to content

Commit 6f5f206

Browse files
committed
fix docker
1 parent 5f2e2ed commit 6f5f206

5 files changed

+5
-713
lines changed

Dockerfile

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

3-
RUN pip3 install flake8 pytest
4-
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py
3+
# FIXME: use uv
4+
RUN apt update && apt install -y python3-venv python3-flake8 python3-pytest
5+
RUN python3 -m venv /exercises-python/venv
6+
RUN /exercises-python/venv/bin/python -m ensurepip
7+
RUN /exercises-python/venv/bin/pip install --upgrade pip
58

69
WORKDIR /exercises-python
710

811
COPY . .
912

1013
ENV PYTHONPATH=/exercises-python/src
11-
# RUN ln -s $(which python3) /usr/bin/python
1214

1315
ENV PATH=/exercises-python/bin:$PATH

docker-compose.override.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
---
2-
3-
version: '3'
4-
52
services:
63
exercises:
74
volumes:
85
- .:/exercises-python
9-

docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
2-
3-
version: '3'
4-
52
services:
63
exercises:
74
build: .
85
image: hexletbasics/exercises-python:cached
96
command: make check
10-

0 commit comments

Comments
 (0)