dummyhttp 0.6.0

Super simple HTTP server that replies with a fixed body and a fixed response code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM rustlang/rust:nightly as builder

ENV APP_HOME /usr/src/app/

RUN rustup target add x86_64-unknown-linux-musl
RUN apt-get update && apt-get install -y upx musl-tools

COPY . $APP_HOME
WORKDIR $APP_HOME
RUN make build-linux

FROM scratch
COPY --from=builder /usr/src/app/target/x86_64-unknown-linux-musl/release/dummyhttp /app/

ENTRYPOINT ["/app/dummyhttp"]