File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,12 @@ RUN make swag
3030# Build it
3131RUN GOOS=linux go build -o /api
3232
33- FROM golang:1.25 AS production
34- WORKDIR /
33+ FROM gcr.io/distroless/base-debian12 AS production
3534
3635COPY --from=builder /api /api
3736# Open port 8080 to traffic
3837EXPOSE 8080
3938
4039# Specify the command to run on container start.
41- CMD ["/api" , "run" ]
42-
43- FROM production
40+ ENTRYPOINT ["/api" ]
41+ CMD ["run" ]
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ func configEnvKeys() {
4444 failIfError (viper .BindEnv ("jwt_private_key" ))
4545 failIfError (viper .BindEnv ("jwt_public_key" ))
4646 failIfError (viper .BindEnv ("api_allowed_origins" ))
47+ failIfError (viper .BindEnv ("sso_config" ))
48+ failIfError (viper .BindEnv ("email_config" ))
4749 failIfError (viper .BindEnv ("metrics_enabled" ))
4850 failIfError (viper .BindEnv ("metrics_port" ))
4951}
You can’t perform that action at this time.
0 commit comments