blob: 8491ebbc7cbb4f5fa5d409a7fedaf53c72601453 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FROM rust:alpine AS builder
COPY Cargo.toml Cargo.lock /app/
COPY src /app/src
WORKDIR /app
RUN apk add musl-dev
RUN cargo build --release
FROM alpine
RUN apk add --no-cache tini
RUN adduser -DH block
USER block
COPY --from=builder /app/target/release/bashttp /bashttp
ENV CONFIG_PATH=/config
ENTRYPOINT [ "/sbin/tini", "--", "/bashttp" ]
|