2021-10-28 11:04:52 +00:00
|
|
|
FROM rust:bullseye as build
|
2020-10-23 17:13:25 +00:00
|
|
|
|
|
|
|
COPY . /src
|
|
|
|
RUN cargo install --path /src
|
|
|
|
|
2021-10-28 11:04:52 +00:00
|
|
|
FROM debian:bullseye
|
2020-10-23 17:13:25 +00:00
|
|
|
|
|
|
|
LABEL org.opencontainers.image.source https://github.com/deps-rs/deps.rs
|
|
|
|
|
|
|
|
RUN set -ex; \
|
|
|
|
apt-get update; \
|
|
|
|
DEBIAN_FRONTEND=noninteractive \
|
2020-11-14 12:15:56 +00:00
|
|
|
apt-get install -y --no-install-recommends ca-certificates libssl-dev; \
|
2020-10-23 17:13:25 +00:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY --from=build /usr/local/cargo/bin/shiny-robots /usr/local/bin
|
|
|
|
|
2020-11-14 12:56:02 +00:00
|
|
|
RUN useradd -ms /bin/bash -u 1001 deps
|
|
|
|
WORKDIR /home/deps
|
|
|
|
USER deps
|
|
|
|
|
2020-10-23 17:13:25 +00:00
|
|
|
EXPOSE 8080
|
|
|
|
CMD /usr/local/bin/shiny-robots
|