servnest-containers/php.Containerfile

31 lines
966 B
Text
Raw Permalink Normal View History

2025-01-20 17:24:27 +01:00
FROM a.invalid/servnest/alpine
ARG PHP_VERSION
ENV PHP_VERSION=$PHP_VERSION
2024-07-18 20:58:12 +02:00
RUN apk add \
php$PHP_VERSION \
php$PHP_VERSION-fpm \
php$PHP_VERSION-curl \
php$PHP_VERSION-gettext \
php$PHP_VERSION-opcache \
php$PHP_VERSION-pdo \
php$PHP_VERSION-pdo_sqlite \
php$PHP_VERSION-session \
php$PHP_VERSION-sodium \
2024-07-18 20:58:12 +02:00
certbot \
bash \
2024-07-18 20:58:12 +02:00
sudo \
openssh-client-common \
sshpass \
openssh-client \
knot \
knot-utils \
sqlite \
gettext
#RUN cp /srv/servnest/core/config.template.ini /srv/servnest/core/config.ini
#RUN sqlite3 /srv/servnest/core/db/servnest.db < /srv/servnest/core/db/schema.sql
#RUN echo "UPDATE params SET value = '$(openssl rand -hex 16)' WHERE name = 'username_salt';" | sqlite3 /srv/servnest/core/db/servnest.db
#RUN msgfmt /srv/servnest/core/locales/fr/C/LC_MESSAGES/messages.po -o /srv/servnest/core/locales/fr/C/LC_MESSAGES/messages.mo
RUN rm /etc/php$PHP_VERSION/php-fpm.d/www.conf
2024-07-18 20:58:12 +02:00
USER servnest:knot
CMD php-fpm$PHP_VERSION --nodaemonize