We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cbc00d commit 7e74cdcCopy full SHA for 7e74cdc
docker/python/Dockerfile
@@ -3,11 +3,18 @@ FROM python:3.12-bookworm
3
RUN apt-get update \
4
&& apt-get install -y python3-dev default-libmysqlclient-dev build-essential pkg-config
5
6
-COPY . /python-api
+ENV VIRTUAL_ENV=/opt/venv
7
+RUN python -m venv $VIRTUAL_ENV
8
+ENV PATH="$VIRTUAL_ENV/bin:$PATH"
9
+
10
+RUN python -m pip install uv
11
12
WORKDIR /python-api
13
+COPY pyproject.toml .
14
15
+RUN uv pip install -e ".[dev]"
16
+COPY . /python-api
17
-RUN python -m pip install --upgrade pip
-RUN python -m pip install -e ".[dev]"
18
19
EXPOSE 8000
20
ENTRYPOINT ["python", "src/main.py"]
0 commit comments