-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.amd64
More file actions
21 lines (15 loc) · 1.94 KB
/
Dockerfile.amd64
File metadata and controls
21 lines (15 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ghcr.io/dockhippie/caddy:latest-amd64@sha256:2555e4f9bd5afd060854523cbad31fcf2de56aa37bab3eee2508d17ce40fca92
WORKDIR /srv/www
CMD ["/usr/bin/container"]
ENV PHP_PACKAGE_VERSION=81
RUN apk update && \
apk upgrade && \
apk add php${PHP_PACKAGE_VERSION}@testing php${PHP_PACKAGE_VERSION}-fpm@testing php${PHP_PACKAGE_VERSION}-ctype@testing php${PHP_PACKAGE_VERSION}-curl@testing php${PHP_PACKAGE_VERSION}-dom@testing php${PHP_PACKAGE_VERSION}-gd@testing php${PHP_PACKAGE_VERSION}-iconv@testing php${PHP_PACKAGE_VERSION}-intl@testing php${PHP_PACKAGE_VERSION}-mysqli@testing php${PHP_PACKAGE_VERSION}-mysqlnd@testing php${PHP_PACKAGE_VERSION}-openssl@testing php${PHP_PACKAGE_VERSION}-opcache@testing php${PHP_PACKAGE_VERSION}-pdo@testing php${PHP_PACKAGE_VERSION}-pdo_mysql@testing php${PHP_PACKAGE_VERSION}-pdo_pgsql@testing php${PHP_PACKAGE_VERSION}-pdo_sqlite@testing php${PHP_PACKAGE_VERSION}-pear@testing php${PHP_PACKAGE_VERSION}-pgsql@testing php${PHP_PACKAGE_VERSION}-phar@testing php${PHP_PACKAGE_VERSION}-sqlite3@testing php${PHP_PACKAGE_VERSION}-xml@testing php${PHP_PACKAGE_VERSION}-zip@testing php${PHP_PACKAGE_VERSION}-mbstring@testing php${PHP_PACKAGE_VERSION}-simplexml@testing php${PHP_PACKAGE_VERSION}-tokenizer@testing php${PHP_PACKAGE_VERSION}-xmlwriter@testing php${PHP_PACKAGE_VERSION}-fileinfo@testing php${PHP_PACKAGE_VERSION}-soap@testing php${PHP_PACKAGE_VERSION}-pecl-apcu@testing php${PHP_PACKAGE_VERSION}-pecl-redis@testing php${PHP_PACKAGE_VERSION}-pecl-memcached@testing git && \
ln -sf /usr/bin/php${PHP_PACKAGE_VERSION} /usr/bin/php && \
rm -rf /var/cache/apk/* /etc/php${PHP_PACKAGE_VERSION}/* && \
mv /srv/www/index.html /srv/www/index.php
VOLUME ["/etc/php${PHP_PACKAGE_VERSION}/custom.d"]
EXPOSE 8080
COPY ./overlay /
RUN curl -sSLo - https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
curl -sSLo /etc/php${PHP_PACKAGE_VERSION}/browscap.ini http://browscap.org/stream\?q=PHP_BrowsCapINI