newdocker
This commit is contained in:
parent
729be37eef
commit
6ae48b4aa0
42
Dockerfile
Normal file
42
Dockerfile
Normal file
@ -0,0 +1,42 @@
|
||||
########################################################################################################################
|
||||
# iowa build stage
|
||||
########################################################################################################################
|
||||
|
||||
FROM rust:1.82.0-slim as build
|
||||
|
||||
COPY ./src ./src
|
||||
COPY ./Cargo.lock .
|
||||
COPY ./Cargo.toml .
|
||||
|
||||
RUN adduser \
|
||||
--disabled-password \
|
||||
--gecos "" \
|
||||
--home "/nonexistent" \
|
||||
--shell "/sbin/nologin" \
|
||||
--no-create-home \
|
||||
--uid 10001 \
|
||||
"meta"
|
||||
|
||||
RUN cargo build --release
|
||||
|
||||
########################################################################################################################
|
||||
# iowa image
|
||||
########################################################################################################################
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=build /etc/passwd /etc/passwd
|
||||
COPY --from=build /etc/group /etc/group
|
||||
|
||||
COPY --from=build /config.toml /app/config.toml
|
||||
COPY --from=build --chown=iowa:iowa ./target/release/metasearch /app/metasearch
|
||||
|
||||
USER meta:meta
|
||||
|
||||
ARG CONFIG
|
||||
ENV CONFIG=${CONFIG}
|
||||
EXPOSE 28019
|
||||
|
||||
ENTRYPOINT ["./app/metasearch", $CONFIG]
|
||||
|
||||
# ENTRYPOINT "./app/metasearch" $CONFIG
|
@ -19,13 +19,13 @@ impl Default for Config {
|
||||
ui: UiConfig {
|
||||
show_engine_list_separator: false,
|
||||
show_version_info: false,
|
||||
site_name: "metasearch".to_string(),
|
||||
show_settings_link: true,
|
||||
site_name: "Dashboard".to_string(),
|
||||
show_settings_link: false,
|
||||
stylesheet_url: "".to_string(),
|
||||
stylesheet_str: "".to_string(),
|
||||
},
|
||||
image_search: ImageSearchConfig {
|
||||
enabled: false,
|
||||
enabled: true,
|
||||
show_engines: true,
|
||||
proxy: ImageProxyConfig {
|
||||
enabled: true,
|
||||
|
Loading…
Reference in New Issue
Block a user