forked from tjanczuk/azure-sdk-tools-xplat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (35 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM debian:jessie
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
ENV NODEJS_APT_ROOT "node_4.x"
ENV NODEJS_VERSION "4.2.4"
ENV AZURECLITEMP /tmp/azure-cli
RUN apt-get update -qq && \
apt-get install -qqy --no-install-recommends\
apt-transport-https \
build-essential \
curl \
ca-certificates \
git \
lsb-release \
python-all \
rlwrap \
vim \
nano \
jq && \
rm -rf /var/lib/apt/lists/* && \
curl https://deb.nodesource.com/${NODEJS_APT_ROOT}/pool/main/n/nodejs/nodejs_${NODEJS_VERSION}-1nodesource1~jessie1_amd64.deb > node.deb && \
dpkg -i node.deb && \
rm node.deb
ADD ./ $AZURECLITEMP
RUN cd $AZURECLITEMP && \
npm install && \
node node_modules/streamline/bin/_node -c lib && \
find lib/ -name "*._js" -delete && \
node bin/azure telemetry -d && \
node bin/azure --gen && \
npm install ./ -g
Run azure --completion >> ~/azure.completion.sh && \
echo 'source ~/azure.completion.sh' >> ~/.bashrc && \
azure config mode arm
RUN rm -rf $AZURECLITEMP
ENV EDITOR vim