Skip to content

Commit

Permalink
Remove unnecessary native dependencies (#100)
Browse files Browse the repository at this point in the history
* Remove JPEG and PostgreSQL native dependencies

* Move build deps back into .build-deps virtual package
  • Loading branch information
binaryf0x authored Oct 16, 2023
1 parent 2906c2f commit 5206b2b
Show file tree
Hide file tree
Showing 3 changed files with 199 additions and 114 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ WORKDIR /code
# Install native dependencies.
RUN mkdir /data /run/nginx
RUN pip install --upgrade pip pipenv
RUN apk add --no-cache jpeg libcurl libpq nginx zlib
RUN apk add --no-cache --virtual .build-deps
RUN apk add --no-cache build-base
RUN apk add --no-cache curl-dev jpeg-dev postgresql-dev zlib-dev
RUN apk add --no-cache libcurl nginx
RUN apk add --no-cache --virtual .build-deps build-base curl-dev

FROM native-deps AS pipfile
COPY Pipfile Pipfile.lock /code/
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pdfrw = "*"
reportlab = "*"
requests = "*"
requests-oauthlib = "*"
psycopg = "*"
psycopg = {extras = ["binary"],version = "*"}
supervisor = "*"
environs = {extras = ["django"],version = "*"}
celery = {extras = ["sqs"],version = "*"}
Expand Down
Loading

0 comments on commit 5206b2b

Please sign in to comment.