teampass (sha-bd86b24)
Installation
docker pull forgejo.skynet.ie/silver/teampass:sha-bd86b24sha256:3e33dc4a808654e713e045deaa3c473d548ae83f47d8d756fe8a2dea52eb5089Image layers
| ADD alpine-minirootfs-3.24.3-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c |
| RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit |
| RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit |
| ENV PHP_INI_DIR=/usr/local/etc/php |
| RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit |
| ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
| ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
| ENV PHP_LDFLAGS=-Wl,-O1 -pie |
| ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA |
| ENV PHP_VERSION=8.3.36 |
| ENV PHP_URL=https://www.php.net/distributions/php-8.3.36.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.36.tar.xz.asc |
| ENV PHP_SHA256=dd54693aa334c5c4d72e9aee96b082c2473750a18a6c1d105789c93a3b1692fd |
| RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apk del --no-network .fetch-deps # buildkit |
| COPY docker-php-source /usr/local/bin/ # buildkit |
| RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; case "$gnuArch" in 'i686-linux-'*) export CFLAGS="$CFLAGS -msse2 -mfpmath=sse" CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" ; ;; esac; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit |
| COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit |
| RUN /bin/sh -c docker-php-ext-enable opcache # buildkit |
| RUN /bin/sh -c docker-php-ext-enable sodium # buildkit |
| ENTRYPOINT ["docker-php-entrypoint"] |
| WORKDIR /var/www/html |
| RUN /bin/sh -c set -eux; cd "${PHP_INI_DIR%/php}"; cp -v php-fpm.conf.default php-fpm.conf; cp -v php-fpm.d/www.conf.default php-fpm.d/www.conf; grep -E '^listen = 127.0.0.1:9000' php-fpm.d/www.conf; sed -ri 's/^(listen = 127.0.0.1:9000)/;\1/' php-fpm.d/www.conf; grep -E '^;listen = 127.0.0.1:9000' php-fpm.d/www.conf; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; echo; echo '; default listen address for easy override in later php-fpm.d/*.conf files'; echo 'listen = 9000'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '; the [www] ini section below is for backwards compatibility and will be removed in 8.6+'; echo '[www]'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit |
| STOPSIGNAL SIGQUIT |
| EXPOSE map[9000/tcp:{}] |
| CMD ["php-fpm"] |
| LABEL maintainer=TeamPass <nils@teampass.net> org.opencontainers.image.title=TeamPass org.opencontainers.image.description=Collaborative Passwords Manager org.opencontainers.image.url=https://teampass.net org.opencontainers.image.source=https://github.com/nilsteampassnet/TeamPass org.opencontainers.image.documentation=https://documentation.teampass.net org.opencontainers.image.licenses=GPL-3.0 org.opencontainers.image.vendor=TeamPass |
| ARG TEAMPASS_VERSION=3.2.3.3 |
| ENV TEAMPASS_VERSION=3.2.3.3 |
| RUN |1 TEAMPASS_VERSION=3.2.3.3 /bin/sh -c apk upgrade --no-cache # buildkit |
| RUN |1 TEAMPASS_VERSION=3.2.3.3 /bin/sh -c apk add --no-cache nginx supervisor busybox-suid netcat-openbsd gnu-libiconv libldap gmp icu-libs libzip freetype libjpeg-turbo libpng libxml2 oniguruma && apk add --no-cache --virtual .build-deps $PHPIZE_DEPS openldap-dev gmp-dev icu-dev libzip-dev freetype-dev libjpeg-turbo-dev libpng-dev libxml2-dev oniguruma-dev && docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-configure ldap && docker-php-ext-install -j$(nproc) mysqli pdo_mysql bcmath ldap gmp gd zip intl opcache mbstring xml && apk del .build-deps && rm -rf /var/cache/apk/* /tmp/* /var/tmp/* # buildkit |
| COPY docker/php/php.ini /usr/local/etc/php/conf.d/teampass.ini # buildkit |
| COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf # buildkit |
| COPY docker/nginx/teampass.conf /etc/nginx/http.d/default.conf # buildkit |
| COPY docker/supervisor/supervisord.conf /etc/supervisor/supervisord.conf # buildkit |
| WORKDIR /var/www/html |
| COPY --chown=nginx:nginx . . # buildkit |
| RUN |1 TEAMPASS_VERSION=3.2.3.3 /bin/sh -c php app/scripts/cleanup_dev_dependencies.php # buildkit |
| RUN |1 TEAMPASS_VERSION=3.2.3.3 /bin/sh -c mkdir -p storage/sk storage/files storage/upload storage/config storage/backups secrets app/includes/libraries/csrfp/log /var/lib/nginx/tmp /var/log/supervisor /run/nginx && chown -R nginx:nginx storage storage/sk storage/files storage/upload storage/config storage/backups secrets app/includes/libraries/csrfp/log /var/lib/nginx /var/log /run/nginx && chmod 700 storage/sk secrets && chmod 750 storage storage/files storage/upload storage/config storage/backups app/includes/libraries/csrfp/log # buildkit |
| RUN |1 TEAMPASS_VERSION=3.2.3.3 /bin/sh -c rm -rf .git .github tests .gitignore .dockerignore .codacy.yml .eslintrc teampass-docker-start.sh Dockerfile # buildkit |
| RUN |1 TEAMPASS_VERSION=3.2.3.3 /bin/sh -c echo "* * * * * php /var/www/html/app/sources/scheduler.php > /dev/null 2>&1" > /var/spool/cron/crontabs/nginx && chmod 600 /var/spool/cron/crontabs/nginx # buildkit |
| COPY docker/docker-entrypoint.sh /docker-entrypoint.sh # buildkit |
| RUN |1 TEAMPASS_VERSION=3.2.3.3 /bin/sh -c chmod +x /docker-entrypoint.sh # buildkit |
| HEALTHCHECK {Test:[CMD-SHELL wget --no-verbose --tries=1 --spider http://localhost/health || exit 1] Interval:30s Timeout:5s StartPeriod:1m0s StartInterval:0s Retries:3} |
| EXPOSE [80/tcp] |
| VOLUME [/var/www/html/storage/sk /var/www/html/storage/files /var/www/html/storage/upload /var/www/html/storage/config /var/www/html/secrets] |
| ENTRYPOINT ["/docker-entrypoint.sh"] |
| CMD ["/usr/bin/supervisord" "-c" "/etc/supervisor/supervisord.conf"] |
Labels
| Key | Value |
|---|---|
| maintainer | TeamPass <nils@teampass.net> |
| org.opencontainers.image.created | 2026-10-31T13:53:55.356Z |
| org.opencontainers.image.description | |
| org.opencontainers.image.documentation | https://documentation.teampass.net |
| org.opencontainers.image.licenses | |
| org.opencontainers.image.revision | bd86b24449f99a399816be7173b3fc240c025a7d |
| org.opencontainers.image.source | https://forgejo.skynet.ie/silver/teampass |
| org.opencontainers.image.title | teampass |
| org.opencontainers.image.url | https://forgejo.skynet.ie/silver/teampass |
| org.opencontainers.image.vendor | TeamPass |
| org.opencontainers.image.version | latest |
Details
2026-10-31 13:54:20 +00:00
2026-11-02 17:22:04 +00:00
Versions (34)
View all
Container
1
OCI / Docker
linux/amd64
104 MiB
latest
2026-10-31
sha-e16a52b
2026-10-31
sha-577b5d8
2026-10-31
sha-89eff32
2026-10-31
sha-995f329
2026-10-31