Initial commit

This commit is contained in:
2026-02-12 12:18:11 +00:00
commit 1b67a70488
11 changed files with 474 additions and 0 deletions

34
Dockerfile Normal file
View File

@@ -0,0 +1,34 @@
# Example Dockerfile for amd64
# 1. ARGs vor FROM deklarieren (für das Basis-Image)
ARG BASE_IMAGE=alpine:latest
FROM ${BASE_IMAGE}
# 2. ARGs nach FROM erneut deklarieren (für die Verwendung im Build)
ARG MAINTAINER
ARG TZ
ARG APP_NAME
ARG APP_USER
# Metadaten setzen
LABEL maintainer="${MAINTAINER}"
LABEL org.opencontainers.image.title="${APP_NAME}"
# Umgebungsvariablen im Container setzen
ENV TZ=${TZ}
ENV USER=${APP_USER}
# Basis-System Update (Beispiel für Alpine)
RUN apk add --no-cache tzdata ca-certificates
# Verzeichnisse aus dem Template vorbereiten
WORKDIR /app
COPY ./config /app/config
COPY ./data /app/data
# Beispiel: User anlegen
RUN adduser -D ${APP_USER} && chown -R ${APP_USER}:${APP_USER} /app
USER ${APP_USER}
CMD ["sh"]