From 0f73b5ac38a3c5822afccba18324884516b50546 Mon Sep 17 00:00:00 2001 From: Erik Svensson Date: Sat, 21 Dec 2024 14:02:31 +0100 Subject: [PATCH 1/2] uniform docker syntax to get rid of warning --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ccc8939..ee029f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:alpine3.19 as build +FROM golang:alpine3.19 AS build # Update libraries RUN apk update && apk upgrade From 6eaa8855c19aa5ab2112c95931c801162cf6e313 Mon Sep 17 00:00:00 2001 From: Erik Svensson Date: Sat, 21 Dec 2024 14:03:02 +0100 Subject: [PATCH 2/2] switch to ':' syntax to separate user and group instead of '.' --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ee029f4..94da1b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,9 +43,9 @@ RUN freshclam --quiet --no-dns COPY entrypoint.sh /usr/bin/ RUN mkdir /clamav \ - && chown -R clamav.clamav /clamav \ - && chown -R clamav.clamav /var/log/clamav \ - && chown -R clamav.clamav /run/clamav + && chown -R clamav:clamav /clamav \ + && chown -R clamav:clamav /var/log/clamav \ + && chown -R clamav:clamav /run/clamav ENV PORT=9000 ENV SSL_PORT=9443