Skip to content

Commit

Permalink
Demonstrate quicker cibuild
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadain committed Oct 17, 2022
1 parent bde5864 commit 9b4a422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
19 changes: 2 additions & 17 deletions src/django/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
FROM python:3.8-slim-buster
FROM quay.io/azavea/django:3.2-python3.8-slim

RUN mkdir -p /usr/local/src
WORKDIR /usr/local/src
COPY requirements.txt /usr/local/src/

RUN set -ex \
&& buildDeps=" \
build-essential \
libpq-dev \
" \
&& deps=" \
gdal-bin \
gettext \
postgresql-client \
" \
&& apt-get update && apt-get install -y $buildDeps $deps --no-install-recommends \
&& pip install --no-cache-dir -r requirements.txt \
&& apt-get purge -y --auto-remove $buildDeps \
$(! command -v gpg > /dev/null || echo 'gnupg dirmngr') \
&& rm -rf requirements.txt /var/lib/apt/lists/*

ENTRYPOINT ["/usr/local/bin/gunicorn"]
&& pip install --no-cache-dir -r requirements.txt

COPY . /usr/local/src

Expand Down
3 changes: 0 additions & 3 deletions src/django/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
black==22.3.0
boto3==1.24.3
django==3.2.13
django-ecsmanage==2.0.1
django-extensions==3.1.5
django-simple-history==3.1.1
Expand All @@ -14,8 +13,6 @@ dj-rest-auth==2.2.5
factory-boy==3.2.1
filetype==1.0.13
flake8==4.0.1
gunicorn==20.1.0
psycopg2==2.9.3
pycodestyle==2.8.0
pyflakes==2.4.0
python-jose==3.3
Expand Down

0 comments on commit 9b4a422

Please sign in to comment.