mirror of
https://github.com/restic/rest-server.git
synced 2026-09-27 14:31:24 -07:00
Merge pull request #392 from Alexis-Loskoutoff/Docker-ENV-format
Docker: Use ENV key=value
This commit is contained in:
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
FROM golang:alpine AS builder
|
FROM golang:alpine AS builder
|
||||||
|
|
||||||
ENV CGO_ENABLED 0
|
ENV CGO_ENABLED=0
|
||||||
|
|
||||||
COPY . /build
|
COPY . /build
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
@@ -11,8 +11,8 @@ RUN go build -o rest-server ./cmd/rest-server
|
|||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
ENV DATA_DIRECTORY /data
|
ENV DATA_DIRECTORY=/data
|
||||||
ENV PASSWORD_FILE /data/.htpasswd
|
ENV PASSWORD_FILE=/data/.htpasswd
|
||||||
|
|
||||||
RUN apk add --no-cache --update apache2-utils tzdata
|
RUN apk add --no-cache --update apache2-utils tzdata
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
ENV DATA_DIRECTORY /data
|
ENV DATA_DIRECTORY=/data
|
||||||
ENV PASSWORD_FILE /data/.htpasswd
|
ENV PASSWORD_FILE=/data/.htpasswd
|
||||||
|
|
||||||
RUN apk add --no-cache --update apache2-utils
|
RUN apk add --no-cache --update apache2-utils
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user