Add support for .env configuration and privacy page (closes #44)

This commit is contained in:
video-prize-ranch
2022-08-04 19:41:55 -04:00
parent 4da9b74949
commit d50cf2da86
11 changed files with 306 additions and 13 deletions

View File

@@ -3,11 +3,11 @@ FROM --platform=$BUILDPLATFORM golang:alpine AS build
ARG TARGETARCH
WORKDIR /src
RUN apk --no-cache add ca-certificates
RUN apk --no-cache add ca-certificates git
COPY . .
RUN go mod download
RUN GOOS=linux GOARCH=$TARGETARCH CGO_ENABLED=0 go build
RUN GOOS=linux GOARCH=$TARGETARCH CGO_ENABLED=0 go build -ldflags "-X codeberg.org/video-prize-ranch/rimgo/pages.VersionInfo=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)"
FROM scratch as bin