diff --git a/Dockerfile b/Dockerfile index 67a0833..4e1ab68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # # Launch a build container so we do not need to care about junk in the production image # -FROM python:3.10 AS build +FROM python:3.10-slim AS build # This is needed to start the Django app ARG SECRET_KEY=none @@ -10,7 +10,7 @@ ARG DATABASE_URL=sqlite:///db.sqlite3 # Install sass RUN apt-get update -RUN apt-get -y install ruby-sass +RUN apt-get -y install ruby-sass build-essential postgresql-client # Deploy files and install requirements ADD app/requirements.txt /app/requirements.txt @@ -34,13 +34,13 @@ RUN rm db.sqlite3 # # The production container # -FROM python:3.10 +FROM python:3.10-slim EXPOSE 8080 RUN adduser --no-create-home --gecos FALSE --disabled-password finger RUN apt-get update \ - && apt-get -y install nginx ruby-sass \ + && apt-get -y install nginx ruby-sass postgresql-client \ && rm -rf /var/lib/apt/lists/* COPY --from=build --chown=finger /app /app diff --git a/app/fingerweb/settings.py b/app/fingerweb/settings.py index d962ff2..d492dc3 100644 --- a/app/fingerweb/settings.py +++ b/app/fingerweb/settings.py @@ -131,7 +131,7 @@ LANGUAGE_CODE = "en-gb" -TIME_ZONE = "CET" +TIME_ZONE = "Europe/Stockholm" USE_I18N = True diff --git a/app/requirements.txt b/app/requirements.txt index 0a4a213..7009a4b 100644 --- a/app/requirements.txt +++ b/app/requirements.txt @@ -7,6 +7,6 @@ django-static-precompiler ~= 1.8.2 markdown ~= 3.1.1 gunicorn ~= 19.9.0 django-environ ~= 0.4.5 -psycopg2-binary ~= 2.8.3 +psycopg2-binary ~= 2.9.11 python-dateutil ~= 2.8.0 django-post_office ~= 3.5.2