Docker: Use ENV key=value

This commit is contained in:
Alexis Loskoutoff
2026-09-05 07:17:27 +02:00
parent 3aec7b45b9
commit 35c2d6f21a
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