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

Refactor dockerfile

This commit is contained in:
Steffo 2023-01-31 04:43:22 +01:00
parent b50e7f82c9
commit e2afa112d8
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -1,17 +1,14 @@
FROM rust:1.64 AS files
FROM rust:1.64-buster 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=build /usr/local/cargo/bin/patched_porobot_telegram /usr/local/bin/patched_porobot_telegram
RUN apt update
RUN apt upgrade -y
FROM files AS system
RUN apt install -y libssl1.1
FROM system AS entrypoint
FROM system AS build
RUN cargo install --path . --all-features --bins
FROM build AS entrypoint
ENTRYPOINT ["patched_porobot_telegram"]
CMD []