-
Notifications
You must be signed in to change notification settings - Fork 27
/
Dockerfile.multiarch
26 lines (20 loc) · 1.23 KB
/
Dockerfile.multiarch
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
FROM docker.io/owncloud/php:20.04@sha256:09ee667820f80a7b319ffb248c22d2a512e1716f33190d5ab1fb09d3f7528ff9
LABEL maintainer="ownCloud GmbH <[email protected]>" \
org.opencontainers.image.authors="ownCloud DevOps <[email protected]>" \
org.opencontainers.image.title="ownCloud Base" \
org.opencontainers.image.url="https://hub.docker.com/r/owncloud/base" \
org.opencontainers.image.source="https://github.com/owncloud-docker/base" \
org.opencontainers.image.documentation="https://github.com/owncloud-docker/base"
RUN mkdir -p /home/owncloud /var/www/owncloud /mnt/data/files /mnt/data/config /mnt/data/certs /mnt/data/sessions && \
chown -R www-data:root /var/www/owncloud /mnt/data && \
chgrp root /home/owncloud /var/run /var/lock/apache2 /var/run/apache2 /etc/environment && \
chmod g+w /home/owncloud /var/run /var/lock/apache2 /var/run/apache2 /etc/environment && \
chsh -s /bin/bash www-data
ADD overlay /
WORKDIR /var/www/owncloud
RUN chgrp root /etc/apache2/sites-enabled/default.conf /etc/php/7.4/mods-available/owncloud.ini && \
chmod g+w /etc/apache2/sites-enabled/default.conf /etc/php/7.4/mods-available/owncloud.ini
VOLUME ["/mnt/data"]
EXPOSE 8080
ENTRYPOINT ["/usr/bin/entrypoint"]
CMD ["/usr/bin/owncloud", "server"]