mirror of
https://github.com/roapi/roapi.git
synced 2026-06-05 21:04:02 +08:00
14 lines
454 B
Docker
14 lines
454 B
Docker
FROM rust:1.50 as builder
|
|
ARG RELEASE=main
|
|
RUN cargo install --git https://github.com/roapi/roapi --branch $RELEASE --bin roapi-http
|
|
|
|
FROM debian:buster-slim
|
|
LABEL org.opencontainers.image.source https://github.com/roapi/roapi
|
|
|
|
RUN apt-get update && apt-get install -y libssl-dev && rm -rf /var/lib/apt/lists/*
|
|
COPY test_data /test_data
|
|
COPY --from=builder /usr/local/cargo/bin/roapi-http /usr/local/bin/roapi-http
|
|
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["roapi-http"]
|