bashttp/deployments/docker/Dockerfile

15 lines
337 B
Docker

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 apk add --no-cache bash
COPY --from=builder /app/target/release/bashttp /bashttp
ENV CONFIG_PATH=/config
ENTRYPOINT [ "/sbin/tini", "--", "/bashttp" ]