axum-bootstrap 0.1.17

a way to bootstrap a web server with axum, including TLS, logging, monitoring, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM alpine as builder
COPY . .
RUN apk add --update --no-cache gcc clang-dev musl-dev curl; \
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y; \
    export PATH="$HOME/.cargo/bin:$PATH"; \
    cargo build --release --target x86_64-unknown-linux-musl; \
    ls ./target/x86_64-unknown-linux-musl/release/axum-bootstrap

FROM alpine as final
RUN apk add --no-cache tzdata; \
    cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime; \
    echo "Asia/Shanghai" > /etc/timezone; \
    apk del tzdata
COPY --from=builder ./target/x86_64-unknown-linux-musl/release/axum-bootstrap /axum-bootstrap
ENTRYPOINT ["/axum-bootstrap"]