File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,8 @@ ENV DEBIAN_FRONTEND noninteractive
1616WORKDIR /tmp
1717
1818# Install base packages.
19- RUN \
20- apt-get update && \
21- apt-get -y install \
19+ RUN apt-get update
20+ RUN apt-get -y install \
2221 build-essential \
2322 curl \
2423 git-core \
5756 CXX="g++ -Wno-unused-local-typedefs" make && \
5857 CXX="g++ -Wno-unused-local-typedefs" make install && \
5958 cd .. && \
60- rm -rf ./ node-v*
59+ rm -rf node-v*
6160
6261# Compile ruby from source.
6362RUN \
6968 make && \
7069 make install && \
7170 cd .. && \
72- rm -rf ./ ruby-*
71+ rm -rf ruby-*
7372
7473# Install ruby gems.
7574RUN gem install bundler rubygems-update --no-ri --no-rdoc
Original file line number Diff line number Diff line change 1313ENV DEBIAN_FRONTEND noninteractive
1414
1515# Install packages.
16- RUN \
17- apt-get update && \
18- apt-get install -y python python-dev python-pip python-virtualenv wget
16+ RUN apt-get update
17+ RUN apt-get install -y python python-dev python-pip python-virtualenv wget
18+
19+ # Define working directory.
20+ WORKDIR /tmp
1921
2022# Compile node from source.
2123RUN \
22- cd /tmp && \
2324 wget http://nodejs.org/dist/node-latest.tar.gz && \
2425 tar xvzf node-*.tar.gz && \
2526 rm -f node-*.tar.gz && \
2627 cd node-* && \
2728 ./configure && \
2829 CXX="g++ -Wno-unused-local-typedefs" make && \
2930 CXX="g++ -Wno-unused-local-typedefs" make install && \
30- cd /tmp && \
31- rm -rf /tmp/ node-v*
31+ cd .. && \
32+ rm -rf node-v*
3233
3334# Install node packages.
3435RUN npm install -g redis-commander
You can’t perform that action at this time.
0 commit comments