Skip to content

Commit 1193a19

Browse files
committed
chore(passport): eliminate pip warnings
1 parent 63b0217 commit 1193a19

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

rootfs/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ FROM docker.io/library/python:3.9-alpine
1111

1212
COPY requirements.txt /app/requirements.txt
1313

14+
ENV PATH="/app/.venv/bin:${PATH}"
15+
1416
RUN apk add --update --virtual .build-deps \
1517
postgresql-dev \
1618
gcc \
@@ -20,6 +22,7 @@ RUN apk add --update --virtual .build-deps \
2022
openssl-dev \
2123
cargo \
2224
rust \
25+
&& python3 -m venv /app/.venv \
2326
&& pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt \
2427
&& runDeps="$( \
2528
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \

rootfs/Dockerfile.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ COPY requirements.txt /app/requirements.txt
44
COPY dev_requirements.txt /app/dev_requirements.txt
55

66
ENV PGDATA /var/lib/postgresql/12
7+
8+
ENV PATH="/app/.venv/bin:${PATH}"
9+
710
RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >>/etc/apk/repositories \
811
&& apk add --update --virtual .build-deps \
912
postgresql-dev \
@@ -14,6 +17,7 @@ RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >>/etc/apk/repositor
1417
openssl-dev \
1518
cargo \
1619
rust \
20+
&& python3 -m venv /app/.venv \
1721
&& pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt \
1822
&& pip3 install --disable-pip-version-check --no-cache-dir -r /app/dev_requirements.txt \
1923
&& runDeps="$( \

0 commit comments

Comments
 (0)