forked from imgproxy/imgproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (25 loc) · 832 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
ARG BASE_IMAGE_VERSION="v1.3.2"
FROM darthsim/imgproxy-base:${BASE_IMAGE_VERSION}
LABEL maintainer="Sergey Alexandrovich <[email protected]>"
COPY . .
RUN go build -v -o /usr/local/bin/imgproxy
# ==================================================================================================
# Final image
FROM debian:buster-slim
LABEL maintainer="Sergey Alexandrovich <[email protected]>"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bash \
ca-certificates \
libsm6 \
liblzma5 \
libzstd1 \
&& 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
CMD ["imgproxy"]
EXPOSE 8080