1
Fork 0
mirror of https://github.com/Steffo99/distributed-arcade.git synced 2024-11-21 15:44:26 +00:00
distributed-arcade/Dockerfile

25 lines
865 B
Text
Raw Normal View History

2023-01-09 04:32:29 +00:00
FROM rust:1.65 AS files
WORKDIR /usr/src/revenants-brooch
2022-11-12 23:01:15 +00:00
COPY . .
FROM files AS install
RUN cargo install --path . --all-features --bins
2023-01-09 04:32:29 +00:00
FROM debian:buster AS system
RUN apt-get update
RUN apt-get install -y libssl1.1 ca-certificates
RUN rm -rf /var/lib/apt/lists/*
2023-01-09 04:35:13 +00:00
COPY --from=install /usr/local/cargo/bin/distributed_arcade /usr/local/bin/distributed_arcade
2022-11-12 23:01:15 +00:00
2023-01-09 04:32:29 +00:00
FROM system AS entrypoint
ENTRYPOINT ["distributed_arcade"]
CMD []
2022-11-12 23:01:15 +00:00
2023-01-09 04:32:29 +00:00
FROM entrypoint AS final
LABEL org.opencontainers.image.title="Distributed Arcade"
LABEL org.opencontainers.image.description="Fast and simple scoreboard service for games"
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
LABEL org.opencontainers.image.url="https://github.com/Steffo99/distributed-arcade"
LABEL org.opencontainers.image.authors="Stefano Pigozzi <me@steffo.eu>"
2022-11-13 00:14:27 +00:00
ENV RUST_LOG "warn,distributed_arcade=info"