mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
Use golang:1-alpine3.10 for docker build
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
.git
|
.git
|
||||||
tmp/
|
tmp/
|
||||||
|
.tmp/
|
||||||
imgproxy
|
imgproxy
|
||||||
|
|
||||||
glide.yaml
|
|
||||||
glide.lock
|
|
||||||
|
|
||||||
docs/
|
docs/
|
||||||
|
docker/
|
||||||
|
examples/
|
||||||
LICENSE
|
LICENSE
|
||||||
README.md
|
README.md
|
||||||
CHANGELOG.md
|
CHANGELOG.md
|
||||||
|
@@ -1,17 +1,15 @@
|
|||||||
FROM alpine:edge
|
FROM golang:1-alpine3.10
|
||||||
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"
|
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"
|
||||||
|
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
ENV PATH /usr/local/go/bin:$PATH
|
ENV PATH /usr/local/go/bin:$PATH
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
RUN apk --no-cache upgrade \
|
||||||
&& apk --no-cache upgrade \
|
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
go \
|
|
||||||
gcc \
|
gcc \
|
||||||
g++ \
|
g++ \
|
||||||
make \
|
make \
|
||||||
@@ -27,9 +25,10 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/reposit
|
|||||||
librsvg-dev \
|
librsvg-dev \
|
||||||
libexif-dev \
|
libexif-dev \
|
||||||
lcms2-dev \
|
lcms2-dev \
|
||||||
libimagequant-dev \
|
|
||||||
libheif-dev \
|
libheif-dev \
|
||||||
tiff-dev
|
tiff-dev \
|
||||||
|
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
|
||||||
|
libimagequant-dev
|
||||||
|
|
||||||
# Build ImageMagick
|
# Build ImageMagick
|
||||||
RUN cd /root \
|
RUN cd /root \
|
||||||
@@ -49,6 +48,7 @@ RUN cd /root \
|
|||||||
--without-bzlib \
|
--without-bzlib \
|
||||||
--without-dps \
|
--without-dps \
|
||||||
--without-freetype \
|
--without-freetype \
|
||||||
|
--without-fontconfig \
|
||||||
--without-jbig \
|
--without-jbig \
|
||||||
--without-jpeg \
|
--without-jpeg \
|
||||||
--without-lcms \
|
--without-lcms \
|
||||||
@@ -58,6 +58,8 @@ RUN cd /root \
|
|||||||
--without-wmf \
|
--without-wmf \
|
||||||
--without-xml \
|
--without-xml \
|
||||||
--without-webp \
|
--without-webp \
|
||||||
|
--without-heic \
|
||||||
|
--without-pango \
|
||||||
&& make install-strip
|
&& make install-strip
|
||||||
|
|
||||||
# Build libvips
|
# Build libvips
|
||||||
@@ -89,11 +91,10 @@ RUN cd /root \
|
|||||||
# ==================================================================================================
|
# ==================================================================================================
|
||||||
# Final image
|
# Final image
|
||||||
|
|
||||||
FROM alpine:edge
|
FROM alpine:3.10
|
||||||
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"
|
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"
|
||||||
|
|
||||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
RUN apk --no-cache upgrade \
|
||||||
&& apk --no-cache upgrade \
|
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
bash \
|
bash \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@@ -109,9 +110,10 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/reposit
|
|||||||
libgsf \
|
libgsf \
|
||||||
libexif \
|
libexif \
|
||||||
lcms2 \
|
lcms2 \
|
||||||
libimagequant \
|
|
||||||
libheif \
|
libheif \
|
||||||
tiff \
|
tiff \
|
||||||
|
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
|
||||||
|
libimagequant \
|
||||||
&& rm -rf /var/cache/apk*
|
&& rm -rf /var/cache/apk*
|
||||||
|
|
||||||
COPY --from=0 /usr/local/bin/imgproxy /usr/local/bin/
|
COPY --from=0 /usr/local/bin/imgproxy /usr/local/bin/
|
||||||
|
Reference in New Issue
Block a user