From 7acafdd3fc8e53f0a407a5bf0fcf0736d0607e54 Mon Sep 17 00:00:00 2001 From: "info@pi-farm.de" Date: Mon, 23 Feb 2026 12:40:00 +0000 Subject: [PATCH] Dockerfile aktualisiert --- Dockerfile | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/Dockerfile b/Dockerfile index 07bb5b9..b4ead6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,27 +1,17 @@ -# Example Dockerfile for amd64 -ARG BASE_IMAGE=alpine:latest +FROM git.pi-farm.de/pi-farm/docker-baseimage-alpine:3.23 -FROM ${BASE_IMAGE} +LABEL description="Alpine Baseimage with s6-overlay and lighttpd" +LABEL build_version="Pi-Farm version:- ${VERSION} Build-date:- ${BUILD_DATE}" +LABEL maintainer="Pi-Farm" -ARG MAINTAINER -ARG TZ -ARG APP_NAME -ARG APP_USER +RUN apk add --no-cache \ + lighttpd \ + lighttpd-mod_auth -LABEL maintainer="${MAINTAINER}" -LABEL org.opencontainers.image.title="${APP_NAME}" +COPY root/ / -ENV TZ=${TZ} -ENV USER=${APP_USER} +EXPOSE 80 -RUN apk add --no-cache tzdata ca-certificates +VOLUME ["/config","/app/www"] -WORKDIR /app -COPY ./config /app/config -COPY ./data /app/data - -RUN adduser -D ${APP_USER} && chown -R ${APP_USER}:${APP_USER} /app - -USER ${APP_USER} - -CMD ["sh"] \ No newline at end of file +ENTRYPOINT ["/init"] \ No newline at end of file