diff --git a/Dockerfile b/Dockerfile index e69de29..4a4b7ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM python:3.7 + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + postgresql-client \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /usr/src/app +COPY requirements.txt ./ +RUN pip install -r requirements.txt +COPY . . + +EXPOSE 8000 +CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 0c81298..8bd612f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,9 @@ dj-database-url==0.5.0 -Django==2.2.6 -django-debug-toolbar==2.0 -gunicorn==19.9.0 +Django==2.2.7 +django-phonenumber-field==3.0.1 +gunicorn==20.0.4 +phonenumbers==8.11.0 psycopg2==2.8.4 pytz==2019.3 sqlparse==0.3.0 -whitenoise==4.1.4 \ No newline at end of file +whitenoise==4.1.4 diff --git a/villafleurie/settings.py b/villafleurie/settings.py index dcac9aa..c8ae83e 100644 --- a/villafleurie/settings.py +++ b/villafleurie/settings.py @@ -3,7 +3,7 @@ import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) -SECRET_KEY = 'q00_4wqdc^n=7)p2lm)!gy&fms8md_b4#1aqysllvqq==2c9!$' +# SECRET_KEY = 'q00_4wqdc^n=7)p2lm)!gy&fms8md_b4#1aqysllvqq==2c9!$' if os.environ.get('ENV') == 'PRODUCTION': DEBUG = False @@ -38,9 +38,6 @@ MIDDLEWARE = [ ] if os.environ.get('ENV') == 'PRODUCTION': - # ... - # Simplified static file serving. - # https://warehouse.python.org/project/whitenoise/ STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' INTERNAL_IPS = ['127.0.0.1']