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:
parent
b50e7f82c9
commit
e2afa112d8
1 changed files with 6 additions and 9 deletions
15
Dockerfile
15
Dockerfile
|
@ -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 []
|
||||
|
||||
|
|
Loading…
Reference in a new issue