2024-11-09 12:56:19 -06:00
|
|
|
FROM alpine AS builder
|
|
|
|
|
2024-12-22 08:31:50 -06:00
|
|
|
ARG STRICHLISTE_VERSION=1.8.2
|
|
|
|
|
2024-11-09 12:56:19 -06:00
|
|
|
WORKDIR /usr/src
|
|
|
|
|
|
|
|
RUN apk update && apk add git
|
|
|
|
|
2024-12-22 08:31:50 -06:00
|
|
|
ADD https://github.com/strichliste/strichliste/releases/download/v${STRICHLISTE_VERSION}/strichliste-v${STRICHLISTE_VERSION}.tar.gz .
|
|
|
|
RUN mkdir strichliste/ && tar -xzf strichliste-v${STRICHLISTE_VERSION}.tar.gz -C strichliste/
|
2024-11-09 12:56:19 -06:00
|
|
|
|
|
|
|
FROM docker.io/library/unit:php8.2
|
|
|
|
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
|
|
|
RUN docker-php-ext-install -j$(nproc) mysqli
|
|
|
|
|
|
|
|
COPY --from=builder --chown=unit:unit /usr/src/strichliste .
|
|
|
|
|
|
|
|
COPY config.json /docker-entrypoint.d/config.json
|
2024-12-22 08:31:50 -06:00
|
|
|
COPY strichliste.yaml config/strichliste.yaml
|