Reduce Docker layers and optimize apt usage

This commit is contained in:
Andrew Gaul 2017-09-09 13:15:35 -07:00
parent 7a40f35b33
commit d4d2fb19df

View file

@ -1,12 +1,14 @@
FROM ubuntu:16.04
MAINTAINER Barna Csorogi <barnacs@justletit.be>
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
libjpeg8 \
openssl \
ssl-cert
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
libjpeg8 \
openssl \
ssl-cert && \
DEBIAN_FRONTEND=noninteractive apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt/compy
COPY \