File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ FROM docker.io/library/python:3.9-alpine
1111
1212COPY requirements.txt /app/requirements.txt
1313
14+ ENV PATH="/app/.venv/bin:${PATH}"
15+
1416RUN 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 \
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ COPY requirements.txt /app/requirements.txt
44COPY dev_requirements.txt /app/dev_requirements.txt
55
66ENV PGDATA /var/lib/postgresql/12
7+
8+ ENV PATH="/app/.venv/bin:${PATH}"
9+
710RUN 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="$( \
You can’t perform that action at this time.
0 commit comments