-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (23 loc) · 811 Bytes
/
Dockerfile
File metadata and controls
25 lines (23 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# syntax=docker/dockerfile:1
# check=skip=SecretsUsedInArgOrEnv
FROM golang:1.26 AS build-stage
WORKDIR /app
COPY example-frontend.go go.mod go.sum ./
COPY ini /usr/local/go/src/example-frontend/ini
COPY secret /usr/local/go/src/example-frontend/secret
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -o /example-frontend
FROM scratch AS release-stage
COPY --from=build-stage /example-frontend /example-frontend
COPY --from=build-stage /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY example-frontend.ini.sample /example-frontend.ini
COPY views/index.html /views/index.html
ENTRYPOINT ["/example-frontend"]
ENV CLIENT_ID=example-frontend
ENV CLIENT_SECRET=
ENV PROVIDER_URL=
ENV CALLBACK_URL=
ENV HOME_URL=
ENV BACKEND_URL=
ENV RESOURCE_URL=
ENV LISTEN_ADDRESS=0.0.0.0:80