1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-24 08:12:38 +02:00
imgproxy/docker/Dockerfile
2022-10-06 21:10:57 +06:00

44 lines
924 B
Docker

ARG BASE_IMAGE_VERSION="v3.3.2"
FROM darthsim/imgproxy-base:${BASE_IMAGE_VERSION}
ARG BUILDPLATFORM
ARG TARGETPLATFORM
COPY . .
RUN docker/build.sh
# ==================================================================================================
# Final image
FROM debian:bullseye-slim
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
bash \
ca-certificates \
libsm6 \
liblzma5 \
libzstd1 \
libpcre3 \
media-types \
&& rm -rf /var/lib/apt/lists/*
COPY --from=0 /usr/local/bin/imgproxy /usr/local/bin/
COPY --from=0 /usr/local/lib /usr/local/lib
COPY NOTICE /usr/local/share/doc/imgproxy/
ENV VIPS_WARNING=0
ENV MALLOC_ARENA_MAX=2
ENV LD_LIBRARY_PATH /usr/local/lib
RUN groupadd -r imgproxy && useradd -r -u 999 -g imgproxy imgproxy
USER 999
CMD ["imgproxy"]
EXPOSE 8080