✨ Expand config search area
This commit is contained in:
parent
515f086f19
commit
0b38c4a470
@ -8,11 +8,6 @@ COPY . .
|
||||
ENV RUSTFLAGS="-C target-feature=-crt-static"
|
||||
RUN cargo build --release
|
||||
|
||||
# Runtime
|
||||
FROM alpine:latest
|
||||
|
||||
COPY --from=roadsign-server /source/target/release/roadsign /roadsign/server
|
||||
|
||||
EXPOSE 81
|
||||
|
||||
CMD ["/roadsign/server"]
|
||||
CMD ["/source/target/release/roadsign"]
|
@ -3,6 +3,7 @@ use config::Config;
|
||||
pub fn load_settings() -> Config {
|
||||
Config::builder()
|
||||
.add_source(config::File::with_name("Settings"))
|
||||
.add_source(config::File::with_name("/Settings"))
|
||||
.add_source(config::Environment::with_prefix("ROADSIGN"))
|
||||
.build()
|
||||
.unwrap()
|
||||
|
Loading…
Reference in New Issue
Block a user