tcc/ActixAPI/Dockerfile

24 lines
708 B
Docker
Raw Normal View History

2023-10-03 15:31:33 -03:00
FROM rust:latest
2023-09-24 10:56:01 -03:00
2023-10-03 15:31:33 -03:00
WORKDIR /app
2023-09-24 10:56:01 -03:00
2023-11-02 19:14:16 -03:00
RUN RUN apt-get update && apt-get -y install wget && \
wget https://files.ivanch.me/api/public/dl/iFuXSNhw/small-image.png && \
2023-10-03 15:31:33 -03:00
wget https://files.ivanch.me/api/public/dl/81Bkht5C/big-image.png && \
wget https://files.ivanch.me/api/public/dl/nAndfAjK/video.mp4 && \
wget https://files.ivanch.me/api/public/dl/RzXwJG7o/nginx.html
2023-09-24 10:56:01 -03:00
2023-10-03 15:31:33 -03:00
COPY . .
2023-09-24 10:56:01 -03:00
2023-10-03 15:31:33 -03:00
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 && \
2023-10-03 15:31:33 -03:00
ldconfig /usr/local/lib
2023-09-24 10:56:01 -03:00
2023-10-03 15:31:33 -03:00
ENV LD_LIBRARY_PATH=/usr/local/lib
2023-09-24 10:56:01 -03:00
ENTRYPOINT ["./ActixAPI"]