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-04 00:41:12 -03:00
|
|
|
RUN apt-get update && apt-get -y install wget && \
|
2023-11-04 00:45:56 -03: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 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 && \
|
2023-10-26 22:33:28 -03:00
|
|
|
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"]
|