Skip to content

Commit 6fe90d0

Browse files
committed
Flattened RUN statements in Dockerfile.
1 parent 556328c commit 6fe90d0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
FROM dockerfile/ubuntu
99

1010
# Install Nginx.
11-
RUN add-apt-repository -y ppa:nginx/stable
12-
RUN apt-get update
13-
RUN apt-get install -y nginx
14-
RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf
11+
RUN \
12+
add-apt-repository -y ppa:nginx/stable && \
13+
apt-get update && \
14+
apt-get install -y nginx && \
15+
echo "\ndaemon off;" >> /etc/nginx/nginx.conf
1516

1617
# Define mountable directories.
1718
VOLUME ["/data", "/etc/nginx/sites-enabled", "/var/log/nginx"]

0 commit comments

Comments
 (0)