lässig
This commit is contained in:
commit
2c36a7665e
7 changed files with 597 additions and 0 deletions
25
Containerfile
Normal file
25
Containerfile
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue