Dockerfile: follow unix convention for files, use config from file instead of env
This commit is contained in:
parent
cd7a894334
commit
1bd3cee6ea
2 changed files with 7 additions and 10 deletions
15
Dockerfile
15
Dockerfile
|
|
@ -19,16 +19,11 @@ COPY logo logo
|
||||||
RUN cargo build --release --target x86_64-unknown-linux-musl --package ezidam --bin ezidam
|
RUN cargo build --release --target x86_64-unknown-linux-musl --package ezidam --bin ezidam
|
||||||
|
|
||||||
FROM alpine:3.17.2
|
FROM alpine:3.17.2
|
||||||
COPY --from=builder /ezidam/target/x86_64-unknown-linux-musl/release/ezidam /ezidam/ezidam
|
COPY --from=builder /ezidam/target/x86_64-unknown-linux-musl/release/ezidam /usr/bin/ezidam
|
||||||
COPY crates/ezidam/static /ezidam/static
|
COPY crates/ezidam/static /usr/share/ezidam/static
|
||||||
COPY crates/ezidam/templates /ezidam/templates
|
COPY crates/ezidam/templates /usr/share/ezidam/templates
|
||||||
COPY crates/email/templates /ezidam/email-templates
|
COPY crates/email/templates /usr/share/ezidam/email-templates
|
||||||
ENV ROCKET_CLI_COLORS=0
|
|
||||||
ENV ROCKET_ADDRESS=0.0.0.0
|
|
||||||
ENV ROCKET_PORT=8000
|
|
||||||
ENV ROCKET_DATABASES='{ezidam={url="/ezidam/database/ezidam.sqlite"}}'
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
WORKDIR /ezidam
|
ENTRYPOINT ["/usr/bin/ezidam"]
|
||||||
ENTRYPOINT ["/ezidam/ezidam"]
|
|
||||||
|
|
||||||
LABEL maintainer="Philippe Loctaux <p@philippeloctaux.com>"
|
LABEL maintainer="Philippe Loctaux <p@philippeloctaux.com>"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
[default]
|
[default]
|
||||||
|
cli_colors = false
|
||||||
address = "0.0.0.0"
|
address = "0.0.0.0"
|
||||||
|
port = 8000
|
||||||
template_dir = "./templates"
|
template_dir = "./templates"
|
||||||
static_dir = "./static"
|
static_dir = "./static"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue