1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-23 01:54:22 +00:00
patched-porobot/Dockerfile

25 lines
928 B
Text
Raw Normal View History

2022-12-24 02:57:48 +00:00
FROM rust:1.64 AS files
2022-08-09 01:09:49 +00:00
WORKDIR /usr/src/patched_porobot
COPY . .
2022-12-24 02:57:48 +00:00
FROM files AS build
2022-08-09 01:09:49 +00:00
RUN cargo install --path . --all-features --bins
2022-12-24 02:57:48 +00:00
FROM debian:buster AS system
2023-01-15 17:00:57 +00:00
COPY --from=build /usr/local/cargo/bin/patched_porobot_telegram /usr/local/bin/patched_porobot_telegram
2023-01-31 03:21:33 +00:00
RUN apt update
RUN apt upgrade -y
RUN apt install -y libssl1.1
2022-08-09 01:09:49 +00:00
2022-12-24 02:57:48 +00:00
FROM system AS entrypoint
2023-01-15 18:26:49 +00:00
ENTRYPOINT ["patched_porobot_telegram"]
2022-12-24 02:57:48 +00:00
CMD []
2022-08-09 01:09:49 +00:00
2022-12-24 02:57:48 +00:00
FROM entrypoint AS final
LABEL org.opencontainers.image.title="Patched Porobot"
LABEL org.opencontainers.image.description="Legends of Runeterra card database utilities and bots"
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
LABEL org.opencontainers.image.url="https://github.com/Steffo99/patched-porobot"
LABEL org.opencontainers.image.authors="Stefano Pigozzi <me@steffo.eu>"
2022-08-09 01:09:49 +00:00
ENV RUST_LOG "warn,patched_porobot=info,patched_porobot_telegram=info,patched_porobot_discord=info,patched_porobot_matrix=info"