30 lines
966 B
Text
30 lines
966 B
Text
FROM a.invalid/servnest/alpine
|
|
ARG PHP_VERSION
|
|
ENV PHP_VERSION=$PHP_VERSION
|
|
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 \
|
|
certbot \
|
|
bash \
|
|
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
|
|
USER servnest:knot
|
|
CMD php-fpm$PHP_VERSION --nodaemonize
|