Skip to content

Commit

Permalink
fix: move curl outside the scope of transient dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nimish-ks committed Oct 24, 2023
1 parent f37715f commit a40e7e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.11.4-alpine3.18
ADD requirements.txt /app/requirements.txt

RUN set -ex \
&& apk add --no-cache --virtual .build-deps curl postgresql-dev build-base gcc musl-dev jpeg-dev zlib-dev libffi-dev cairo-dev pango-dev gdk-pixbuf-dev mariadb-dev python3-dev \
&& apk add --no-cache --virtual .build-deps postgresql-dev build-base gcc musl-dev jpeg-dev zlib-dev libffi-dev cairo-dev pango-dev gdk-pixbuf-dev mariadb-dev python3-dev \
&& python -m venv /env \
&& /env/bin/pip install --upgrade pip \
&& /env/bin/pip install --no-cache-dir -r /app/requirements.txt \
Expand All @@ -15,6 +15,7 @@ RUN set -ex \
&& apk add --virtual rundeps $runDeps \
&& apk del .build-deps

RUN apk add --no-cache curl
RUN addgroup -S app && adduser -S app -G app
ADD . /app
WORKDIR /app
Expand Down

0 comments on commit a40e7e1

Please sign in to comment.