mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-22 14:41:01 +01:00
Store config in config instead of root directory
This commit is contained in:
parent
c4f7370397
commit
50cdc159db
@ -8,7 +8,7 @@ RUN apk --update add ca-certificates
|
||||
# Run the binary on an empty container
|
||||
FROM scratch
|
||||
COPY --from=builder /app/gatus .
|
||||
COPY --from=builder /app/config.yaml .
|
||||
COPY --from=builder /app/config.yaml ./config/config.yaml
|
||||
COPY --from=builder /app/static static/
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
ENV PORT=8080
|
||||
|
@ -44,10 +44,10 @@ func Load(configFile string) error {
|
||||
}
|
||||
|
||||
func LoadDefaultConfiguration() error {
|
||||
err := Load("config.yaml")
|
||||
err := Load("config/config.yaml")
|
||||
if err != nil {
|
||||
if err == ErrConfigFileNotFound {
|
||||
return Load("config.yml")
|
||||
return Load("config/config.yml")
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
@ -1,2 +1,2 @@
|
||||
FROM twinproduction/gatus
|
||||
ADD config.yaml ./
|
||||
ADD config.yaml ./config/config.yaml
|
Loading…
Reference in New Issue
Block a user