Skip to content

Commit

Permalink
Fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
simhnna committed Oct 31, 2024
1 parent 0674f1d commit 2ff679c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 60 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ FROM index.docker.io/library/python:slim

WORKDIR /app
# Copy the code
ADD manage.py deploy/requirements.txt deploy/settings.py setup.py urls.py deploy/wsgi.py /app/
ADD manage.py deploy/requirements.txt deploy/settings.py urls.py deploy/wsgi.py /app/
ADD silverstrike /app/silverstrike

# install deps
RUN apt-get update -y && apt-get install -y gcc libmariadb-dev python3-dev libffi-dev pkg-config && \
pip install --no-cache-dir -r requirements.txt && python setup.py install && apt-get remove -y gcc pkg-config && apt-get autoremove -y
pip install --no-cache-dir -r requirements.txt && apt-get remove -y gcc pkg-config && apt-get autoremove -y

# configure uwsgi and django
ENV DJANGO_SETTINGS_MODULE=settings UWSGI_WSGI_FILE=wsgi.py UWSGI_HTTP=:8000 UWSGI_MASTER=1 UWSGI_WORKERS=2 UWSGI_THREADS=8 UWSGI_LAZY_APPS=1 UWSGI_WSGI_ENV_BEHAVIOR=holy
Expand Down
7 changes: 7 additions & 0 deletions deploy/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Django>=5.1.2
django-allauth>=65.1.0
django-cors-headers>=4.6.0
django-widgets-improved>=1.5.0
djangorestframework>=3.15.2
python-dateutil>=2.9.0.post0
pytz>=2024.2
whitenoise
uwsgi
psycopg2-binary
Expand Down
58 changes: 0 additions & 58 deletions setup.py

This file was deleted.

0 comments on commit 2ff679c

Please sign in to comment.