Skip to content

Commit

Permalink
feat(docker): update base image and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
aldor007 committed Jan 16, 2019
1 parent 7317772 commit a6fea81
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
FROM ubuntu:16.04 as builder
FROM ubuntu:18.04 as builder

ENV LIBVIPS_VERSION 8.6.2
ENV DEP_VERSION v0.4.1
ENV LIBVIPS_VERSION 8.7.3
ENV DEP_VERSION v0.5.0
ENV GOLANG_VERSION 1.11

# Installs libvips + required libraries
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
automake build-essential curl \
gobject-introspection gtk-doc-tools libglib2.0-dev libjpeg-turbo8-dev libpng12-dev \
gobject-introspection gtk-doc-tools libglib2.0-dev libjpeg-turbo8-dev libpng-dev \
libwebp-dev libtiff5-dev libgif-dev libexif-dev libxml2-dev libpoppler-glib-dev \
swig libmagickwand-dev libpango1.0-dev libmatio-dev libopenslide-dev libcfitsio-dev \
libgsf-1-dev fftw3-dev liborc-0.4-dev librsvg2-dev && \
libgsf-1-dev fftw3-dev liborc-0.4-dev librsvg2-dev swig libbrotli-dev && \
cd /tmp && \
curl -OL https://github.com/libvips/libvips/releases/download/v${LIBVIPS_VERSION}/vips-${LIBVIPS_VERSION}.tar.gz && \
tar zvxf vips-${LIBVIPS_VERSION}.tar.gz && \
Expand Down Expand Up @@ -50,21 +50,23 @@ ADD . /go/src/github.com/aldor007/mort
RUN cd /go/src/github.com/aldor007/mort && dep ensure -vendor-only
RUN cd /go/src/github.com/aldor007/mort; go build -o /go/mort cmd/mort/mort.go;

FROM ubuntu:16.04
FROM ubuntu:18.04

RUN \
# Install runtime dependencies
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
libglib2.0-0 libjpeg-turbo8 libpng12-0 libopenexr22 \
libwebp5 libtiff5 libgif7 libexif12 libxml2 libpoppler-glib8 \
libmagickwand-6.q16-2 libpango1.0-0 libmatio2 libopenslide0 \
libgsf-1-114 fftw3 liborc-0.4 librsvg2-2 libcfitsio2 && \
libglib2.0-0 libjpeg-turbo8 libpng16-16 libopenexr22 \
libwebp6 libtiff5 libgif7 libexif12 libxml2 libpoppler-glib8 \
libmagickwand-6.q16hdri-3 libmagickcore-6.q16-3-extra libmagickcore-6.q16hdri-3 \
libpango1.0-0 libmatio4 libopenslide0 libwebpmux3 \
libgsf-1-114 fftw3 liborc-0.4 librsvg2-2 libcfitsio-bin libbrotli1 && \
apt-get install -y ca-certificates && \
# Clean up
apt-get autoremove -y && \
apt-get autoclean && \
apt-get clean && \
ldconfig /usr/local/lib && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN mkdir -p /etc/mort/
Expand Down

0 comments on commit a6fea81

Please sign in to comment.