-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.arm64
More file actions
25 lines (18 loc) · 2.18 KB
/
Copy pathDockerfile.arm64
File metadata and controls
25 lines (18 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ghcr.io/dockhippie/caddy:latest-arm64@sha256:c1e167c9712ea3aca644cb871997836b4168a81148bf6ac182b02a21efa67f3f
WORKDIR /srv/www
CMD ["/usr/bin/container"]
ENV PHP_PACKAGE_VERSION=82
RUN apk update && \
apk upgrade && \
apk add php${PHP_PACKAGE_VERSION} 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 find /etc/container.d /etc/entrypoint.d -type f -name \*.sh -exec sed -i 's/\r$//' {} +; \
sed -i 's/\r$//' /usr/bin/entrypoint /usr/bin/container* && \
chmod +x /usr/bin/entrypoint /usr/bin/container* /etc/container.d/*.sh /etc/entrypoint.d/*.sh
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