mirror of
https://github.com/nextcloud/docker.git
synced 2025-01-24 22:53:53 +01:00
Move to a debian stretch and alpine 3.7 based base image
This commit is contained in:
parent
c07de51f8e
commit
85a7b1a6ba
2 changed files with 14 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM php:%%PHP_VERSION%%-%%VARIANT%%
|
||||
FROM php:%%PHP_VERSION%%-%%VARIANT%%3.7
|
||||
|
||||
# entrypoint.sh and cron.sh dependencies
|
||||
RUN set -ex; \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM php:%%PHP_VERSION%%-%%VARIANT%%
|
||||
FROM php:%%PHP_VERSION%%-%%VARIANT%%-stretch
|
||||
|
||||
# entrypoint.sh and cron.sh dependencies
|
||||
RUN set -ex; \
|
||||
|
@ -29,7 +29,7 @@ RUN set -ex; \
|
|||
libldap2-dev \
|
||||
libmcrypt-dev \
|
||||
libmemcached-dev \
|
||||
libpng12-dev \
|
||||
libpng-dev \
|
||||
libpq-dev \
|
||||
libxml2-dev \
|
||||
; \
|
||||
|
@ -96,6 +96,13 @@ VOLUME /var/www/html
|
|||
ENV NEXTCLOUD_VERSION %%VERSION%%
|
||||
|
||||
RUN set -ex; \
|
||||
fetchDeps=" \
|
||||
gnupg \
|
||||
dirmngr \
|
||||
"; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends $fetchDeps; \
|
||||
\
|
||||
curl -fsSL -o nextcloud.tar.bz2 \
|
||||
"%%BASE_DOWNLOAD_URL%%/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2"; \
|
||||
curl -fsSL -o nextcloud.tar.bz2.asc \
|
||||
|
@ -110,7 +117,10 @@ RUN set -ex; \
|
|||
rm -rf /usr/src/nextcloud/updater; \
|
||||
mkdir -p /usr/src/nextcloud/data; \
|
||||
mkdir -p /usr/src/nextcloud/custom_apps; \
|
||||
chmod +x /usr/src/nextcloud/occ
|
||||
chmod +x /usr/src/nextcloud/occ; \
|
||||
\
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY *.sh /
|
||||
COPY config/* /usr/src/nextcloud/config/
|
||||
|
|
Loading…
Reference in a new issue