Skip to content
Permalink
Browse files

Use golang:1-alpine3.10 for docker build

  • Loading branch information...
DarthSim committed Oct 3, 2019
1 parent 9b76a0b commit bda7e1e53d60a0587c74d80bb5247f7f06bbcf3e
Showing with 15 additions and 13 deletions.
  1. +3 −3 .dockerignore
  2. +12 −10 docker/Dockerfile
@@ -1,12 +1,12 @@
.DS_Store
.git
tmp/
.tmp/
imgproxy

glide.yaml
glide.lock

docs/
docker/
examples/
LICENSE
README.md
CHANGELOG.md
@@ -1,17 +1,15 @@
FROM alpine:edge
FROM golang:1-alpine3.10
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"

ENV GOPATH /go
ENV PATH /usr/local/go/bin:$PATH

# Install dependencies
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk --no-cache upgrade \
RUN apk --no-cache upgrade \
&& apk add --no-cache \
curl \
git \
ca-certificates \
go \
gcc \
g++ \
make \
@@ -27,9 +25,10 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/reposit
librsvg-dev \
libexif-dev \
lcms2-dev \
libimagequant-dev \
libheif-dev \
tiff-dev
tiff-dev \
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
libimagequant-dev

# Build ImageMagick
RUN cd /root \
@@ -49,6 +48,7 @@ RUN cd /root \
--without-bzlib \
--without-dps \
--without-freetype \
--without-fontconfig \
--without-jbig \
--without-jpeg \
--without-lcms \
@@ -58,6 +58,8 @@ RUN cd /root \
--without-wmf \
--without-xml \
--without-webp \
--without-heic \
--without-pango \
&& make install-strip

# Build libvips
@@ -89,11 +91,10 @@ RUN cd /root \
# ==================================================================================================
# Final image

FROM alpine:edge
FROM alpine:3.10
LABEL maintainer="Sergey Alexandrovich <darthsim@gmail.com>"

RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk --no-cache upgrade \
RUN apk --no-cache upgrade \
&& apk add --no-cache \
bash \
ca-certificates \
@@ -109,9 +110,10 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/reposit
libgsf \
libexif \
lcms2 \
libimagequant \
libheif \
tiff \
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
libimagequant \
&& rm -rf /var/cache/apk*

COPY --from=0 /usr/local/bin/imgproxy /usr/local/bin/

0 comments on commit bda7e1e

Please sign in to comment.
You can’t perform that action at this time.