bashttp/deployments/docker/Dockerfile
2023-07-03 01:23:30 -04:00

17 lines
362 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 adduser -DH block
USER block
COPY --from=builder /app/target/release/bashttp /bashttp
COPY config /config
ENV CONFIG_PATH=/config
ENTRYPOINT [ "/sbin/tini", "--", "/bashttp" ]