FROM rust:latest WORKDIR /app RUN apt-get update && apt-get -y install wget && \ wget https://files.ivanch.me/api/public/dl/a8pf5HZL/small-image.png && \ wget https://files.ivanch.me/api/public/dl/ZoZDck7M/big-image.png && \ wget https://files.ivanch.me/api/public/dl/URuFVrtX/video.mp4 && \ wget https://files.ivanch.me/api/public/dl/aeZqpr_F/nginx.html COPY . . RUN cargo build --release && \ cp ./target/release/ActixAPI . && \ mv small-image.png ./static && \ mv big-image.png ./static && \ mv video.mp4 ./static && \ mv nginx.html ./static && \ ldconfig /usr/local/lib ENV LD_LIBRARY_PATH=/usr/local/lib ENTRYPOINT ["./ActixAPI"]