updated files for a prod env

This commit is contained in:
Hendrik Behme committed 2026-08-17 01:20:47 +02:00
1 parent 551b06e68a
commit 4182510795
8 files changed
+152 -17

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
# Dev-installed vendor/cache — the prod Dockerfile runs its own
# `composer install --no-dev` and cache:clear, so copying these in first
# would only bloat the build context and get overwritten anyway.
vendor/
var/
.git
+24
View File
@@ -0,0 +1,24 @@
FROM dunglas/frankenphp:latest
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN install-php-extensions pdo_pgsql zip
# The imported event data and the site's audience are both German-local;
# default to that instead of UTC so any "now"/"today" computation doesn't
# quietly disagree with the data for the two hours after every UTC midnight.
ENV TZ=Europe/Berlin
RUN echo "date.timezone = Europe/Berlin" > $PHP_INI_DIR/conf.d/timezone.ini
WORKDIR /app
COPY . .
RUN composer install --no-interaction --no-dev --optimize-autoloader \
&& php bin/console cache:clear --env=prod --no-debug
# Caddy's default site address in the base image's Caddyfile is
# {$SERVER_NAME:localhost}; a bare ":8000" (no hostname) makes it listen
# HTTP-only on that port, which is what we want — Traefik terminates TLS
# and forwards plain HTTP to this container.
ENV SERVER_NAME=:8000
EXPOSE 8000
+2 -2
View File
@@ -11,9 +11,9 @@
<!-- MAP HERO — light: nearest ~20 events, refines once you share your location -->
<section class="section" style="padding:0;">
<div class="wrap">
<p class="eyebrow" style="margin-bottom:8px;">Nordrhein-Westfalen — updated every hour</p>
<p class="eyebrow" style="margin-bottom:8px;"></p>
<div class="section-head">
<h1 style="font-size:clamp(28px,4vw,40px);">What's on near you</h1>
<h1 style="font-size:clamp(28px,4vw,40px);">Was in deiner Nähe los ist</h1>
<a href="{{ path('map') }}" class="btn btn-primary btn-sm">Open full map →</a>
</div>
</div>