mirror of
				https://github.com/ivanch/tcc.git
				synced 2025-10-31 01:17:37 +00:00 
			
		
		
		
	melhorando testes e adicionando actix
This commit is contained in:
		| @@ -1,25 +1,34 @@ | ||||
| FROM rust:slim-bullseye AS build-env | ||||
| FROM rust:latest | ||||
|  | ||||
| ENV MAGICK_VERSION 7.1 | ||||
|  | ||||
| RUN apt-get update \ | ||||
|     && apt-get -y install wget curl build-essential clang pkg-config libjpeg-turbo-progs libpng-dev | ||||
|  | ||||
| RUN apt update && apt install curl -y \ | ||||
|     && curl https://imagemagick.org/archive/ImageMagick.tar.gz | tar xz \ | ||||
|     && cd ImageMagick-${MAGICK_VERSION}* \ | ||||
|     && ./configure --with-magick-plus-plus=no --with-perl=no \ | ||||
|     && make \ | ||||
|     && make install \ | ||||
|     && cd .. \ | ||||
|     && rm -r ImageMagick-${MAGICK_VERSION}* | ||||
|  | ||||
| WORKDIR /app | ||||
|  | ||||
| RUN wget https://files.ivanch.me/api/public/dl/iFuXSNhw/small-image.png && \ | ||||
|     wget https://files.ivanch.me/api/public/dl/81Bkht5C/big-image.png && \ | ||||
|     wget https://files.ivanch.me/api/public/dl/nAndfAjK/video.mp4 | ||||
|  | ||||
| COPY . . | ||||
|  | ||||
| RUN apt update && apt install wget -y && \ | ||||
|     wget https://files.ivanch.me/api/public/dl/iFuXSNhw/small-image.png && \ | ||||
|     wget https://files.ivanch.me/api/public/dl/81Bkht5C/big-image.png && \ | ||||
|     wget https://files.ivanch.me/api/public/dl/nAndfAjK/video.mp4 && \ | ||||
| RUN cargo build --release && \ | ||||
|     cp ./target/release/ActixAPI . && \ | ||||
|     mv small-image.png ./static && \ | ||||
|     mv big-image.png ./static && \ | ||||
|     mv video.mp4 ./static | ||||
|     mv video.mp4 ./static && \ | ||||
|     ldconfig /usr/local/lib | ||||
|  | ||||
| RUN cargo build --release | ||||
|  | ||||
| FROM debian:bullseye-slim | ||||
|  | ||||
| WORKDIR /app | ||||
|  | ||||
| COPY --from=build-env /app/target/release . | ||||
|  | ||||
| COPY --from=build-env /app/static ./static | ||||
| ENV LD_LIBRARY_PATH=/usr/local/lib | ||||
|  | ||||
| ENTRYPOINT ["./ActixAPI"] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user