add actix

This commit is contained in:
2023-09-28 20:40:45 -03:00
parent aa4b1e9709
commit 2f91c3636f
5 changed files with 59 additions and 28 deletions

View File

@@ -16,10 +16,19 @@ RUN cargo build --release
FROM debian:bullseye-slim
ENV MAGICK_VERSION 7.1
RUN 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
COPY --from=build-env /app/target/release .
COPY --from=build-env /app/static ./static
ENTRYPOINT ["./ActixAPI"]