mirror of
https://github.com/ivanch/tcc.git
synced 2025-08-27 08:11:48 +00:00
specifying fixed versions for packages
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
FROM rust:latest
|
FROM rust:1.77-buster as builder
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
RUN cargo build --release
|
||||||
|
|
||||||
|
FROM debian:bullseye-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y install wget && \
|
RUN apt-get update && apt-get -y install wget && \
|
||||||
@@ -7,17 +11,12 @@ RUN apt-get update && apt-get -y install wget && \
|
|||||||
wget https://files.ivanch.me/api/public/dl/jNlXYMLR/big-image.png && \
|
wget https://files.ivanch.me/api/public/dl/jNlXYMLR/big-image.png && \
|
||||||
wget https://files.ivanch.me/api/public/dl/QdKvaeQI/video.mp4 && \
|
wget https://files.ivanch.me/api/public/dl/QdKvaeQI/video.mp4 && \
|
||||||
wget https://files.ivanch.me/api/public/dl/YD4vmSsO/nginx.html && \
|
wget https://files.ivanch.me/api/public/dl/YD4vmSsO/nginx.html && \
|
||||||
|
mkdir -p ./static && \
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN cargo build --release && \
|
|
||||||
cp ./target/release/ActixAPI . && \
|
|
||||||
mv small-image.png ./static && \
|
mv small-image.png ./static && \
|
||||||
mv big-image.png ./static && \
|
mv big-image.png ./static && \
|
||||||
mv video.mp4 ./static && \
|
mv video.mp4 ./static && \
|
||||||
mv nginx.html ./static && \
|
mv nginx.html ./static
|
||||||
ldconfig /usr/local/lib
|
|
||||||
|
|
||||||
ENV LD_LIBRARY_PATH=/usr/local/lib
|
COPY --from=builder /app/target/release/ActixAPI .
|
||||||
|
|
||||||
ENTRYPOINT ["./ActixAPI"]
|
CMD ["./ActixAPI"]
|
2
Express
2
Express
Submodule Express updated: 3a54792794...7348eb993c
@@ -1,3 +1,3 @@
|
|||||||
Flask>=1.0
|
Flask==3.0
|
||||||
gunicorn>=19.9.0
|
gunicorn==19.9.0
|
||||||
protobuf>=4.25.0
|
protobuf==4.25.0
|
Reference in New Issue
Block a user