tobiasgubik
  • Joined on 2026-07-28

build-physio (9b5c8d252d2a5959b60bea9f6d0856d3fc4ca52a)

Published 2026-11-23 14:04:27 +00:00 by tobiasgubik

Installation

docker pull git.digital-companions.de/tobiasgubik/build-physio:9b5c8d252d2a5959b60bea9f6d0856d3fc4ca52a
sha256:4f4c6a427b77cce7424d8d525574aeb593b49b4b8aa1e91c853edd5c856fa120

Images

Digest OS / Arch Size
d97e9b2a54 linux/amd64 325 MiB

Image Layers ( linux/amd64)

ADD alpine-minirootfs-3.24.4-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ENV NODE_VERSION=24.22.3
RUN /bin/sh -c addgroup -g 1000 node && adduser -u 1000 -G node -s /bin/sh -D node && apk add --no-cache libatomic libstdc++ && apk add --no-cache --virtual .build-deps gnupg curl && ARCH= OPENSSL_ARCH='linux*' && alpineArch="$(apk --print-arch)" && case "${alpineArch##*-}" in x86_64) ARCH='x64' OPENSSL_ARCH=linux-x86_64;; aarch64) OPENSSL_ARCH=linux-aarch64;; s390x) OPENSSL_ARCH=linux-s390x;; *) echo "unsupported architecture"; exit 1 ;; esac && export GNUPGHOME="$(mktemp -d)" && set -ex && for key in 5BE8A3F6C8A5C01D106C0AD820B1A390B168D356 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 CC68F5A3106FF448322E48ED27F5E38D5B0A215F 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A 655F3B5C1FB3FA8D1A0CA6BDE4A7D232B936D2FD A363A499291CBBC940DD62E41F10027AF002F8B0 ; do { gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" && gpg --batch --fingerprint "$key"; } || { gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" && gpg --batch --fingerprint "$key"; } ; done && if [ "$ARCH" = "x64" ]; then curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && rm "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt && ln -s /usr/local/bin/node /usr/local/bin/nodejs; else echo "Building from source" && apk add --no-cache --virtual .build-deps-full binutils-gold g++ gcc libgcc linux-headers make python3 py-setuptools && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xf "node-v$NODE_VERSION.tar.xz" && cd "node-v$NODE_VERSION" && ./configure && make -j$(getconf _NPROCESSORS_ONLN) V= && make install && apk del .build-deps-full && cd .. && rm -Rf "node-v$NODE_VERSION" && rm "node-v$NODE_VERSION.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt; fi && find /usr/local/include/node/openssl/archs -mindepth 1 -maxdepth 1 ! -name "$OPENSSL_ARCH" -exec rm -rf {} \; && apk del .build-deps && node --version && npm --version && rm -rf /tmp/* # buildkit
ENV YARN_VERSION=1.22.22
RUN /bin/sh -c apk add --no-cache --virtual .build-deps-yarn curl gnupg tar && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do { gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" && gpg --batch --fingerprint "$key"; } || { gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" && gpg --batch --fingerprint "$key"; } ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && apk del .build-deps-yarn && yarn --version && rm -rf /tmp/* # buildkit
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["node"]
ARG TZ=Europe/Berlin
ARG DATABASE_URL=postgres://physio:WASscJatA2peZMMw7w9VxojAPnbXxWPJ@yx8fbcsahhasa8253jdprr6j:5432/physio
ARG SYNC_API_TOKEN=61a53c83bd5655483faf1e43a01e5d5662aa4e9d0f4618a3
ARG AUTH_SECRET=PJbMP5lxsUDs3LC6E/QG/8EYM5PC7oSYfO4PCfZxQl+h9MZ3bI0EB+gYr8ZoSE0r
ARG UPLOAD_DIR=/data/uploads
ARG AUTH_URL=https://physio.gubik.eu
ARG AUTH_TRUST_HOST=true
ARG NODE_ENV=production
ARG PATIENTEN_URL=https://praxis.katrinritter.com
ARG PATIENTEN_STARTSEITE=https://www.katrinritter.com/
ARG SMTP_HOST=smtp.easyname.com
ARG SMTP_PORT=587
ARG SMTP_SECURE=false
ARG SMTP_USER=201366mail1
ARG SMTP_FROM=Katrin Ritter <mail@katrinritter.com>
ARG SMTP_PASS=d5fng3m4des!
ARG COOLIFY_URL=https://physio.gubik.eu,https://physio.82-165-121-79.sslip.io,https://praxis.katrinritter.com
ARG COOLIFY_FQDN=physio.gubik.eu,physio.82-165-121-79.sslip.io,praxis.katrinritter.com
ARG COOLIFY_BRANCH=main
ARG COOLIFY_RESOURCE_UUID=gomdviq66m7q3g6uij2zdn8f
ARG COOLIFY_BUILD_SECRETS_HASH=16e532e4ca3cd4a5ebc36a445983cac0f42006b7a82796b0f1b1f8c25b821875
WORKDIR /app
RUN |21 TZ=Europe/Berlin DATABASE_URL=postgres://physio:WASscJatA2peZMMw7w9VxojAPnbXxWPJ@yx8fbcsahhasa8253jdprr6j:5432/physio SYNC_API_TOKEN=61a53c83bd5655483faf1e43a01e5d5662aa4e9d0f4618a3 AUTH_SECRET=PJbMP5lxsUDs3LC6E/QG/8EYM5PC7oSYfO4PCfZxQl+h9MZ3bI0EB+gYr8ZoSE0r UPLOAD_DIR=/data/uploads AUTH_URL=https://physio.gubik.eu AUTH_TRUST_HOST=true NODE_ENV=production PATIENTEN_URL=https://praxis.katrinritter.com PATIENTEN_STARTSEITE=https://www.katrinritter.com/ SMTP_HOST=smtp.easyname.com SMTP_PORT=587 SMTP_SECURE=false SMTP_USER=201366mail1 SMTP_FROM=Katrin Ritter <mail@katrinritter.com> SMTP_PASS=d5fng3m4des! COOLIFY_URL=https://physio.gubik.eu,https://physio.82-165-121-79.sslip.io,https://praxis.katrinritter.com COOLIFY_FQDN=physio.gubik.eu,physio.82-165-121-79.sslip.io,praxis.katrinritter.com COOLIFY_BRANCH=main COOLIFY_RESOURCE_UUID=gomdviq66m7q3g6uij2zdn8f COOLIFY_BUILD_SECRETS_HASH=16e532e4ca3cd4a5ebc36a445983cac0f42006b7a82796b0f1b1f8c25b821875 /bin/sh -c apk add --no-cache tini curl su-exec # buildkit
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
ENV TZ=Europe/Berlin
ENV UPLOAD_DIR=/data/uploads
ARG SOURCE_COMMIT=unknown
ENV GIT_COMMIT_SHA=unknown
RUN |22 TZ=Europe/Berlin DATABASE_URL=postgres://physio:WASscJatA2peZMMw7w9VxojAPnbXxWPJ@yx8fbcsahhasa8253jdprr6j:5432/physio SYNC_API_TOKEN=61a53c83bd5655483faf1e43a01e5d5662aa4e9d0f4618a3 AUTH_SECRET=PJbMP5lxsUDs3LC6E/QG/8EYM5PC7oSYfO4PCfZxQl+h9MZ3bI0EB+gYr8ZoSE0r UPLOAD_DIR=/data/uploads AUTH_URL=https://physio.gubik.eu AUTH_TRUST_HOST=true NODE_ENV=production PATIENTEN_URL=https://praxis.katrinritter.com PATIENTEN_STARTSEITE=https://www.katrinritter.com/ SMTP_HOST=smtp.easyname.com SMTP_PORT=587 SMTP_SECURE=false SMTP_USER=201366mail1 SMTP_FROM=Katrin Ritter <mail@katrinritter.com> SMTP_PASS=d5fng3m4des! COOLIFY_URL=https://physio.gubik.eu,https://physio.82-165-121-79.sslip.io,https://praxis.katrinritter.com COOLIFY_FQDN=physio.gubik.eu,physio.82-165-121-79.sslip.io,praxis.katrinritter.com COOLIFY_BRANCH=main COOLIFY_RESOURCE_UUID=gomdviq66m7q3g6uij2zdn8f COOLIFY_BUILD_SECRETS_HASH=16e532e4ca3cd4a5ebc36a445983cac0f42006b7a82796b0f1b1f8c25b821875 SOURCE_COMMIT=unknown /bin/sh -c addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs # buildkit
COPY --chown=nextjs:nodejs /app/.next/standalone ./ # buildkit
COPY --chown=nextjs:nodejs /app/.next/static ./.next/static # buildkit
COPY --chown=nextjs:nodejs /app/public ./public # buildkit
COPY --chown=nextjs:nodejs /app/node_modules ./node_modules # buildkit
COPY --chown=nextjs:nodejs /app/src/lib/pdf/fonts ./src/lib/pdf/fonts # buildkit
COPY --chown=nextjs:nodejs /app/src/lib/pdf/assets ./src/lib/pdf/assets # buildkit
COPY --chown=nextjs:nodejs /app/prisma ./prisma # buildkit
COPY --chown=nextjs:nodejs /app/prisma.config.ts ./prisma.config.ts # buildkit
COPY --chown=nextjs:nodejs /app/src/generated ./src/generated # buildkit
COPY --chown=nextjs:nodejs /app/scripts ./scripts # buildkit
COPY --chown=nextjs:nodejs /app/package.json ./package.json # buildkit
COPY --chmod=755 docker-entrypoint.sh ./docker-entrypoint.sh # buildkit
EXPOSE [3000/tcp]
HEALTHCHECK {Test:[CMD-SHELL curl -fsS http://127.0.0.1:3000/api/health >/dev/null || exit 1] Interval:15s Timeout:5s StartPeriod:30s StartInterval:0s Retries:6}
ENTRYPOINT ["/sbin/tini" "--"]
CMD ["/app/docker-entrypoint.sh"]
Details
Container
2026-11-23 14:04:27 +00:00
1
OCI / Docker
Versions (2) View all