Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 2f2ea34

Browse files
committed
Reduce image size by 40MB
Remove upgrade and cleanup after installation to reduce image size.
1 parent 758a9f9 commit 2f2ea34

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
FROM ubuntu:14.04
1010

1111
# Update
12-
RUN apt-get update
13-
RUN apt-get -y upgrade
14-
12+
RUN apt-get update \
1513
# Install pip
16-
RUN apt-get -y install python-pip
17-
18-
# Install deps for backports.lzma (python2 requires it)
19-
RUN apt-get -y install python-dev liblzma-dev libevent1-dev
14+
&& apt-get install -y \
15+
python-pip \
16+
# Install deps for backports.lmza (python2 requires it)
17+
python-dev \
18+
liblzma-dev \
19+
libevent1-dev \
20+
&& rm -rf /var/lib/apt/lists/*
2021

2122
COPY . /docker-registry
2223
COPY ./config/boto.cfg /etc/boto.cfg

0 commit comments

Comments
 (0)