Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/fingerweb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@

LANGUAGE_CODE = "en-gb"

TIME_ZONE = "CET"
TIME_ZONE = "Europe/Stockholm"

USE_I18N = True

Expand Down
2 changes: 1 addition & 1 deletion app/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading