From 4270518e02b7e668d2abb0e52813027e9301e3a8 Mon Sep 17 00:00:00 2001 From: waja Date: Fri, 25 Apr 2025 11:02:07 +0200 Subject: [PATCH] chore: fixing Docker build checks * Fixing FromAsCasing (See https://docs.docker.com/reference/build-checks/from-as-casing/) * Fixing LegacyKeyValueFormat (See https://docs.docker.com/reference/build-checks/legacy-key-value-format/) --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 36ac207..452667c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,11 +18,11 @@ ARG GPG_FINGERPRINT="2880 6A87 8AE4 23A2 8372 792E D758 99B9 A724 937A" # --------------------------------------------------- ### Build PHP base -FROM docker.io/library/php:${PHP_VERSION}-fpm-alpine${ALPINE_VERSION} as base +FROM docker.io/library/php:${PHP_VERSION}-fpm-alpine${ALPINE_VERSION} AS base ARG SNUFFLEUPAGUS_VERSION -ENV IMAGICK_SHA 28f27044e435a2b203e32675e942eb8de620ee58 +ENV IMAGICK_SHA=28f27044e435a2b203e32675e942eb8de620ee58 RUN apk -U upgrade \ && apk add -t build-deps \ @@ -88,7 +88,7 @@ RUN apk -U upgrade \ ### Build Hardened Malloc ARG ALPINE_VERSION -FROM docker.io/library/alpine:${ALPINE_VERSION} as build-malloc +FROM docker.io/library/alpine:${ALPINE_VERSION} AS build-malloc ARG HARDENED_MALLOC_VERSION ARG CONFIG_NATIVE=false @@ -102,11 +102,11 @@ RUN apk --no-cache add build-base git gnupg && cd /tmp \ ### Fetch nginx -FROM docker.io/library/nginx:${NGINX_VERSION}-alpine as nginx +FROM docker.io/library/nginx:${NGINX_VERSION}-alpine AS nginx ### Build Nextcloud (production environemnt) -FROM base as nextcloud +FROM base AS nextcloud COPY --from=nginx /usr/sbin/nginx /usr/sbin/nginx COPY --from=nginx /etc/nginx /etc/nginx