Merge pull request #392 from Alexis-Loskoutoff/Docker-ENV-format
test / Linux Go 1.24.x (push) Has been cancelled
test / Linux (race) Go 1.25.x (push) Has been cancelled
test / Linux Go 1.25.x (push) Has been cancelled
test / lint (push) Has been cancelled
test / Analyze results (push) Has been cancelled

Docker: Use ENV key=value
This commit is contained in:
Michael Eischer
2026-09-20 17:12:22 +02:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
FROM golang:alpine AS builder
ENV CGO_ENABLED 0
ENV CGO_ENABLED=0
COPY . /build
WORKDIR /build
@@ -11,8 +11,8 @@ RUN go build -o rest-server ./cmd/rest-server
FROM alpine
ENV DATA_DIRECTORY /data
ENV PASSWORD_FILE /data/.htpasswd
ENV DATA_DIRECTORY=/data
ENV PASSWORD_FILE=/data/.htpasswd
RUN apk add --no-cache --update apache2-utils tzdata
+2 -2
View File
@@ -1,7 +1,7 @@
FROM alpine
ENV DATA_DIRECTORY /data
ENV PASSWORD_FILE /data/.htpasswd
ENV DATA_DIRECTORY=/data
ENV PASSWORD_FILE=/data/.htpasswd
RUN apk add --no-cache --update apache2-utils