-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 1021 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (22 loc) · 1021 Bytes
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
FROM ghcr.io/rkojedzinszky/webhost-images/php84
LABEL org.opencontainers.image.authors="Richard Kojedzinszky <richard@kojedz.in>"
LABEL org.opencontainers.image.source=https://github.com/kubernetize/nextcloud
ARG NC_VER=33.0.2
USER 0
COPY assets/ /
# download packages & nextcloud
RUN phpver=$(php -r 'echo PHP_MAJOR_VERSION . PHP_MINOR_VERSION;') && \
for i in /etc/php/conf.d/*.ini; do ln -s "$i" "/etc/php${phpver}/conf.d/"; done && \
apk --no-cache add curl tar php${phpver}-pecl-apcu php${phpver}-pecl-imagick php${phpver}-pecl-redis && \
mkdir -p /var/www/html && \
curl -sL https://download.nextcloud.com/server/releases/nextcloud-${NC_VER}.tar.bz2 | tar xjf - -C /var/www/html --strip-components=1 --no-same-owner --no-same-permissions
# Update installation, prepare /data
WORKDIR /var/www/html
RUN \
chown 8080:8080 .htaccess && \
mkdir -p /data && \
chown 8080:8080 /data && \
rm -rf config && \
ln -s /data/config config && \
ln -s /data/apps apps-ext
USER 8080