File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM docker.io/library/python:3.9-alpine
22
33COPY requirements.txt /app/requirements.txt
44
5+ ENV PATH="/app/.venv/bin:${PATH}"
6+
57RUN 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 \
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 \
@@ -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="$( \
You can’t perform that action at this time.
0 commit comments