-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile.multiarch
More file actions
56 lines (51 loc) · 1.92 KB
/
Dockerfile.multiarch
File metadata and controls
56 lines (51 loc) · 1.92 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM owncloud/ubuntu:24.04@sha256:6b9c9ade9b1c8d5d473acb8d65a3cb773c9d610674633be35526248b70e3e90c
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
org.opencontainers.image.authors="wnCloud DevOps <devops@owncloud.com>" \
org.opencontainers.image.title="ownCloud PHP" \
org.opencontainers.image.url="https://hub.docker.com/r/owncloud/php" \
org.opencontainers.image.source="https://github.com/owncloud-docker/php" \
org.opencontainers.image.documentation="https://github.com/owncloud-docker/php"
EXPOSE 8080
ENTRYPOINT ["/usr/bin/entrypoint"]
CMD ["/usr/bin/server"]
RUN apt-get update -y && \
apt-get install --no-install-recommends -y \
apache2 \
libapache2-mod-php8.3 \
php8.3 \
php8.3-gd \
php8.3-mysql \
php8.3-sqlite3 \
php8.3-pgsql \
php8.3-curl \
php8.3-intl \
php8.3-zip \
php8.3-xml \
php8.3-mbstring \
php8.3-soap \
php8.3-ldap \
php8.3-apcu \
php8.3-redis \
php8.3-gmp \
php8.3-imagick \
php8.3-smbclient \
# libldap-common is required to install /etc/ldap/ldap.conf which is a must have to allow proper ldap operations
libldap-common \
libimage-exiftool-perl \
exiftool \
sqlite3 \
librsvg2-common \
ghostscript && \
rm -rf /etc/apache2/envvars /etc/apache2/conf-* /etc/apache2/sites-* /var/log/apache2/* && \
a2enmod rewrite headers env dir mime expires remoteip && \
mkdir -p /var/www/html && \
mkdir -p /var/www/.cache && \
chown -R www-data:www-data /var/www/html /var/www/.cache /var/log/apache2 /var/run/apache2 && \
chsh -s /bin/bash www-data && \
curl -sSfL https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
apt-get purge -y '*-dev' git cmake automake libtool yasm g++ gsfonts ffmpeg less pkg-config xz-utils make && \
apt-get update && apt-get -y --purge autoremove && \
rm -rf /var/lib/apt/lists/* /usr/local/share/doc/* /usr/local/include/* /tmp/* && \
apt-get clean
ADD overlay /
WORKDIR /var/www/html