bashttp/deployments/docker/Dockerfile

16 lines
337 B
Text
Raw Permalink Normal View History

2023-07-03 05:23:30 +00:00
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
2023-07-03 06:00:52 +00:00
RUN apk add --no-cache bash
2023-07-03 05:23:30 +00:00
COPY --from=builder /app/target/release/bashttp /bashttp
ENV CONFIG_PATH=/config
ENTRYPOINT [ "/sbin/tini", "--", "/bashttp" ]