This commit is contained in:
lubiana 2025-06-27 15:04:56 +02:00
commit 2c36a7665e
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
7 changed files with 597 additions and 0 deletions

25
Containerfile Normal file
View file

@ -0,0 +1,25 @@
FROM composer:2 as composer_builder
WORKDIR /app
COPY composer.json composer.lock ./
RUN composer install --no-dev --optimize-autoloader
FROM dunglas/frankenphp
WORKDIR /app
COPY public/ ./public
COPY --from=composer_builder /app/vendor ./vendor
ARG USER=appuser
RUN \
# Use "adduser -D ${USER}" for alpine based distros
useradd ${USER}; \
# Remove default capability
setcap -r /usr/local/bin/frankenphp; \
# Give write access to /data/caddy and /config/caddy
chown -R ${USER}:${USER} /data/caddy && chown -R ${USER}:${USER} /config/caddy
USER ${USER}
LABEL "org.opencontainers.image.description"="Cool und Lässig uuid"
LABEL "org.opencontainers.image.source"="https://git.hannover.ccc.de/lubiana/uuid"
LABEL "org.opencontainers.image.title"="UUID Service"
LABEL "org.opencontainers.image.url"="https://uuid.php.fail/"
LABEL "org.opencontainers.image.vendor"="lubiana"
LABEL "org.opencontainers.image.version"="v1.3.3.7"