mirror of
https://github.com/deps-rs/deps.rs.git
synced 2024-11-22 02:16:30 +00:00
19 lines
444 B
Docker
19 lines
444 B
Docker
FROM rust:latest as build
|
|
|
|
COPY . /src
|
|
RUN cargo install --path /src
|
|
|
|
FROM debian:buster
|
|
|
|
LABEL org.opencontainers.image.source https://github.com/deps-rs/deps.rs
|
|
|
|
RUN set -ex; \
|
|
apt-get update; \
|
|
DEBIAN_FRONTEND=noninteractive \
|
|
apt-get install -y --no-install-recommends libssl-dev; \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=build /usr/local/cargo/bin/shiny-robots /usr/local/bin
|
|
|
|
EXPOSE 8080
|
|
CMD /usr/local/bin/shiny-robots
|