9 Commits

Author SHA1 Message Date
8b15621860 Adding back smb support to the image 2021-12-07 15:39:06 +01:00
63ac90199c Fix typo in workflow cron argument 2021-12-06 08:48:44 +01:00
a0cd4f12c9 Update README 2021-12-06 08:31:48 +01:00
ae37864108 Enable scan during build again and change trigger 2021-12-06 08:29:08 +01:00
94d1a1f7c7 Update to Alpine 3.15 2021-12-05 21:34:06 +01:00
0b59268aa8 Change .well-known regex 2021-12-05 21:32:08 +01:00
11632128e4 Add imagick dependency 2021-12-05 21:02:36 +01:00
6d3ff722dd Update to Nextcloud 23 2021-12-04 10:26:48 +01:00
d279197f16 Remove nc_port 2021-12-04 10:23:36 +01:00
4 changed files with 24 additions and 14 deletions

View File

@ -3,10 +3,10 @@ name: build
on:
workflow_dispatch:
push:
branches: [ main ]
branches: [ master ]
schedule:
# Build the image regularly (each Friday)
- cron: '13 23 * * 5'
- cron: '23 04 * * 5'
jobs:
build:
@ -34,10 +34,10 @@ jobs:
severity: 'CRITICAL,HIGH'
vuln-type: "os"
# - name: Upload Trivy scan results to GitHub Security tab
# uses: github/codeql-action/upload-sarif@v1
# with:
# sarif_file: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: 'trivy-results.sarif'
- name: Login to the registry
run: >-

View File

@ -1,9 +1,9 @@
# -------------- Build-time variables --------------
ARG NEXTCLOUD_VERSION=22.2.3
ARG NEXTCLOUD_VERSION=23.0.0
ARG PHP_VERSION=8.0
ARG NGINX_VERSION=1.20
ARG ALPINE_VERSION=3.14
ARG ALPINE_VERSION=3.15
ARG HARDENED_MALLOC_VERSION=8
ARG UID=1000
@ -28,6 +28,8 @@ RUN apk -U upgrade \
libzip-dev \
openldap-dev \
postgresql-dev \
samba-dev \
imagemagick-dev \
zlib-dev \
&& apk --no-cache add \
freetype \
@ -38,7 +40,10 @@ RUN apk -U upgrade \
libpq \
libwebp \
libzip \
libsmbclient \
openldap \
libgomp \
imagemagick \
zlib \
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
&& docker-php-ext-configure ldap \
@ -54,9 +59,14 @@ RUN apk -U upgrade \
pdo_pgsql \
zip \
gmp \
&& pecl install smbclient \
&& pecl install APCu \
&& pecl install redis \
&& echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini \
&& pecl install imagick \
&& docker-php-ext-enable \
smbclient \
redis \
imagick \
&& apk del build-deps \
&& rm -rf /var/cache/apk/*

View File

@ -4,7 +4,7 @@
Nextcloud [official website](https://nextcloud.com/) and [source code](https://github.com/nextcloud).
## Why this image?
This non-official image is intended as an **all-in-one** (as in monolithic) Nextcloud **production** image. If you're not sure you want this image, you should probably use [the official image](https://hub.docker.com/r/nextcloud).
This non-official image is intended as an **all-in-one** (as in monolithic) Nextcloud **production** image. It is based on the [Wondefall/docker-nextcloud](https://github.com/Wonderfall/docker-nextcloud) image. If you're not sure you want this image, you should probably use [the official image](https://hub.docker.com/r/nextcloud).
## Security
Don't run random images from random dudes on the Internet. Ideally, you want to maintain and build it yourself.

View File

@ -30,10 +30,10 @@ server {
access_log off;
}
location /.well-known {
location = /.well-known/carddav { return 301 $nc_proto://$host:$nc_port/remote.php/dav; }
location = /.well-known/caldav { return 301 $nc_proto://$host:$nc_port/remote.php/dav; }
location ^~ /.well-known { return 301 $nc_proto://$host:$nc_port/index.php$uri; }
location ^~ /.well-known {
location = /.well-known/carddav { return 301 $nc_proto://$host/remote.php/dav; }
location = /.well-known/caldav { return 301 $nc_proto://$host/remote.php/dav; }
location ^~ /.well-known { return 301 $nc_proto://$host/index.php$uri; }
try_files $uri $uri/ =404;
}