tcc/ActixAPI/Dockerfile

24 lines
704 B
Docker
Raw Normal View History

2023-10-03 18:31:33 +00:00
FROM rust:latest
2023-09-24 13:56:01 +00:00
2023-10-03 18:31:33 +00:00
WORKDIR /app
2023-09-24 13:56:01 +00:00
2023-11-04 03:41:12 +00:00
RUN apt-get update && apt-get -y install wget && \
2023-11-04 03:45:56 +00:00
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
2023-09-24 13:56:01 +00:00
2023-10-03 18:31:33 +00:00
COPY . .
2023-09-24 13:56:01 +00:00
2023-10-03 18:31:33 +00: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 18:31:33 +00:00
ldconfig /usr/local/lib
2023-09-24 13:56:01 +00:00
2023-10-03 18:31:33 +00:00
ENV LD_LIBRARY_PATH=/usr/local/lib
2023-09-24 13:56:01 +00:00
ENTRYPOINT ["./ActixAPI"]