File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 11FROM python:3.10
22
3+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
4+
35ARG DEPENDENCIES
46
5- RUN pip install psycopg2 pymysql mysqlclient pytest pytest-cov pytest-asyncio
6- RUN echo "${DEPENDENCIES}" > /tmp/requirements.txt && pip install -r /tmp/requirements.txt
7- RUN pip list
7+ RUN uv pip install --system psycopg2 pymysql mysqlclient pytest pytest-cov pytest-asyncio
8+ RUN echo "${DEPENDENCIES}" > /tmp/requirements.txt && \
9+ uv pip install --system -r /tmp/requirements.txt
10+
11+ RUN uv pip list
Original file line number Diff line number Diff line change 33# The --platform flag ensures consistent behavior across environments
44FROM --platform=linux/amd64 python:3.10
55
6+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
7+
68ARG DEPENDENCIES
79
810# apt-get and system utilities
@@ -18,6 +20,8 @@ RUN curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt
1820# install SQL Server drivers and tools
1921RUN apt-get update && ACCEPT_EULA=Y apt-get install -y mssql-tools unixodbc-dev
2022
21- RUN pip install pyodbc pytest pytest-cov pytest-asyncio
22- RUN echo "${DEPENDENCIES}" > /tmp/requirements.txt && pip install -r /tmp/requirements.txt
23- RUN pip list
23+ RUN uv pip install --system pyodbc pytest pytest-cov pytest-asyncio
24+ RUN echo "${DEPENDENCIES}" > /tmp/requirements.txt && \
25+ uv pip install --system -r /tmp/requirements.txt
26+
27+ RUN uv pip list
You can’t perform that action at this time.
0 commit comments