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

Update Dockerfile

This commit is contained in:
Steffo 2022-12-24 03:57:48 +01:00
parent b52e23b882
commit cf8b1d3e35
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -1,23 +1,21 @@
FROM rust:1.64 AS labels FROM rust:1.64 AS files
WORKDIR /usr/src/patched_porobot
COPY . .
FROM files AS build
RUN cargo install --path . --all-features --bins
FROM debian:buster AS system
COPY --from=install /usr/local/cargo/bin/patched_porobot /usr/local/bin/patched_porobot
FROM system AS entrypoint
ENTRYPOINT ["bobbot"]
CMD []
FROM entrypoint AS final
LABEL org.opencontainers.image.title="Patched Porobot" LABEL org.opencontainers.image.title="Patched Porobot"
LABEL org.opencontainers.image.description="Legends of Runeterra card database utilities and bots" 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.licenses="AGPL-3.0-or-later"
LABEL org.opencontainers.image.url="https://github.com/Steffo99/patched-porobot" LABEL org.opencontainers.image.url="https://github.com/Steffo99/patched-porobot"
LABEL org.opencontainers.image.authors="Stefano Pigozzi <me@steffo.eu>" LABEL org.opencontainers.image.authors="Stefano Pigozzi <me@steffo.eu>"
FROM labels AS files
WORKDIR /usr/src/patched_porobot
COPY . .
FROM files AS install
RUN cargo install --path . --all-features --bins
FROM install AS environment
ENV RUST_LOG "warn,patched_porobot=info,patched_porobot_telegram=info,patched_porobot_discord=info,patched_porobot_matrix=info" ENV RUST_LOG "warn,patched_porobot=info,patched_porobot_telegram=info,patched_porobot_discord=info,patched_porobot_matrix=info"