From 21f30e4e0d79843bb67ec244e00e9c27b46f7a7a Mon Sep 17 00:00:00 2001 From: RandomY-2 <69881587+RandomY-2@users.noreply.github.com> Date: Tue, 1 Nov 2022 20:58:59 -0700 Subject: [PATCH] Use requirements.txt for dependency installations (#63) --- Dockerfile | 7 ++++++- requirements.txt | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile index fc79bd0..7f583a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,12 @@ RUN pip install pipenv --no-cache-dir # Allows docker to cache installed dependencies between builds COPY Pipfile Pipfile COPY Pipfile.lock Pipfile.lock -RUN pipenv install --deploy --system +COPY requirements.txt requirements.txt +RUN apt-get -y update && apt-get -y install libpq-dev gcc zlib1g +ENV LIBRARY_PATH=/lib:/usr/lib +RUN /usr/local/bin/python -m pip install --upgrade pip +RUN pip install importlib-metadata==4.13.0 +RUN pip install -r requirements.txt # Adds our application code to the image COPY . code diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..dc7c438 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,44 @@ +pytz==2018.9 +django-configurations==2.1 +gunicorn==19.9.0 +newrelic==4.12.0.113 +psycopg2-binary==2.7.7 +dj-database-url==0.5.0 +django-model-utils==3.1.2 +django-unique-upload==0.2.1 +djangorestframework==3.9.1 +django-filter==2.1.0 +ipdb==0.11 +ipython==7.2.0 +mkdocs==1.0.4 +flake8==3.6.0 +mock==2.0.0 +django-nose==1.4.6 +nose-progressive==1.5.2 +coverage==4.5.2 +django-storages==1.7.1 +boto3==1.9.86 +django==2.2 +markdown==3.0.1 +factory-boy==2.11.1 +django-role-permissions==2.2.1 +pillow==8.3.2 +requests-oauthlib==1.2.0 +requests==2.22.0 +coreapi==2.3.3 +pygments==2.4.0 +drf-nested-routers==0.91 +whitenoise==4.1.2 +django-cors-headers==3.0.1 +mypy==0.701 +bleach==3.1.0 +html5lib==1.0.1 +python-frontmatter==0.4.5 +django-taggit==1.1.0 +django-taggit-serializer==0.1.7 +archieml==0.3.4 +drf-yasg==1.15.0 +celery==4.3.0 +redis==3.2.1 +django-celery-results==1.0.4 +django-redis==4.10.0