Skip to content

Commit c3ad355

Browse files
authored
Fix installation
Fixes installation and minifies image
1 parent fecd68b commit c3ad355

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

Dockerfile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
FROM ubuntu
22
MAINTAINER Laurens Stötzel <[email protected]>
33

4-
# Install JpegTrag
5-
RUN echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe" > /etc/apt/sources.list
6-
RUN apt-get update -y && apt-get install -y libjpeg-progs
4+
RUN apt-get update -qqy && \
5+
apt-get install --no-install-recommends -qqy lsb-release && \
6+
\
7+
# Install jpegtran
8+
echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe" > /etc/apt/sources.list && \
9+
apt-get update -qqy && \
10+
apt-get install -qqy --no-install-recommends libjpeg-progs && \
11+
\
12+
# cleanup
13+
apt-get remove --purge -y lsb-release $( apt-mark showauto ) && \
14+
apt-get autoremove -y && \
15+
apt-get clean -y && \
16+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
717

818
RUN mkdir -p /source
919
WORKDIR /source
1020

11-
ENTRYPOINT [ "/usr/bin/jpegtran" ]
21+
ENTRYPOINT [ "/usr/bin/jpegtran" ]

0 commit comments

Comments
 (0)