Skip to content

Commit ba0b69d

Browse files
committed
chore(controller): eliminate pip warnings
1 parent 009d27b commit ba0b69d

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
@@ -2,6 +2,8 @@ FROM docker.io/library/python:3.9-alpine
22

33
COPY requirements.txt /app/requirements.txt
44

5+
ENV PATH="/app/.venv/bin:${PATH}"
6+
57
RUN apk add --update --virtual .build-deps \
68
postgresql-dev \
79
gcc \
@@ -10,6 +12,7 @@ RUN apk add --update --virtual .build-deps \
1012
libffi-dev \
1113
musl-dev \
1214
openssl-dev \
15+
&& python3 -m venv /app/.venv \
1316
&& pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt \
1417
&& runDeps="$( \
1518
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 \
@@ -13,6 +16,7 @@ RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >>/etc/apk/repositor
1316
libffi-dev \
1417
musl-dev \
1518
openldap-dev \
19+
&& python3 -m venv /app/.venv \
1620
&& pip3 install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt \
1721
&& pip3 install --disable-pip-version-check --no-cache-dir -r /app/dev_requirements.txt \
1822
&& runDeps="$( \

0 commit comments

Comments
 (0)