2020-12-15 18:59:31 +06:00
|
|
|
ARG BASE_IMAGE_VERSION="v1.3.1"
|
2020-03-12 20:03:29 +06:00
|
|
|
|
2020-06-16 19:48:19 +06:00
|
|
|
FROM darthsim/imgproxy-base:${BASE_IMAGE_VERSION}
|
|
|
|
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"
|
2018-11-08 16:34:21 +06:00
|
|
|
|
2019-11-26 20:56:21 +06:00
|
|
|
COPY . .
|
|
|
|
RUN go build -v -o /usr/local/bin/imgproxy
|
2018-11-08 16:34:21 +06:00
|
|
|
|
|
|
|
# ==================================================================================================
|
|
|
|
# Final image
|
2017-07-01 11:59:10 +06:00
|
|
|
|
2019-11-26 20:56:21 +06:00
|
|
|
FROM debian:buster-slim
|
2018-10-25 22:25:54 +06:00
|
|
|
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"
|
2018-10-25 11:28:17 -03:00
|
|
|
|
2019-11-26 20:56:21 +06:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
2019-10-02 18:49:05 +06:00
|
|
|
bash \
|
|
|
|
ca-certificates \
|
2019-11-26 20:56:21 +06:00
|
|
|
libsm6 \
|
2020-03-12 20:03:29 +06:00
|
|
|
liblzma5 \
|
2020-03-13 17:38:12 +06:00
|
|
|
libzstd1 \
|
2019-11-26 20:56:21 +06:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2018-10-25 11:28:17 -03:00
|
|
|
|
2018-11-08 16:34:21 +06:00
|
|
|
COPY --from=0 /usr/local/bin/imgproxy /usr/local/bin/
|
2019-11-26 20:56:21 +06:00
|
|
|
COPY --from=0 /usr/local/lib /usr/local/lib
|
2020-06-16 19:48:19 +06:00
|
|
|
|
|
|
|
COPY NOTICE /usr/local/share/doc/imgproxy/
|
2018-10-25 11:28:17 -03:00
|
|
|
|
2019-03-21 18:47:17 +06:00
|
|
|
ENV VIPS_WARNING=0
|
2020-01-09 18:19:43 +06:00
|
|
|
ENV MALLOC_ARENA_MAX=2
|
2020-06-16 19:48:19 +06:00
|
|
|
ENV LD_LIBRARY_PATH /usr/local/lib
|
2019-03-21 18:47:17 +06:00
|
|
|
|
2017-07-01 11:59:10 +06:00
|
|
|
CMD ["imgproxy"]
|
|
|
|
|
|
|
|
EXPOSE 8080
|