Skip to content

Commit 6e11a97

Browse files
committed
Clean after deinstallation of build tools
1 parent 58fb854 commit 6e11a97

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,17 @@ ADD README.md $SOURCE_DIR/
4545
# installed app artifacts.
4646
############################################################
4747

48-
RUN apt-get update && \
48+
RUN apt-get -y update && \
4949
apt-get -y install git nodejs nodejs-legacy npm nginx gettext-base && \
5050
cd $SOURCE_DIR && \
5151
npm install -g yo && \
5252
npm install && \
5353
bower install --allow-root && \
5454
grunt build --allow-root && \
5555
cp -rf $SOURCE_DIR/dist/* $NGX_ROOT && \
56-
rm -rf /tmp/source && \
57-
apt-get purge -y --auto-remove git nodejs nodejs-legacy npm
56+
rm -rf $SOURCE_DIR && \
57+
apt-get -y --auto-remove purge git nodejs nodejs-legacy npm && \
58+
apt-get -y clean
5859

5960
# Add nginx config files for HTTP and HTTPS
6061
ADD nginx-site.conf /root/nginx-site.conf

0 commit comments

Comments
 (0)