5
5
6
6
FROM node:lts
7
7
8
- # Configure apt
9
8
ENV DEBIAN_FRONTEND=noninteractive
9
+
10
+ # Set the default shell to bash instead of sh
11
+ ENV SHELL /bin/bash
12
+
13
+ # Configure apt
10
14
RUN apt-get update \
11
15
&& apt-get -y install --no-install-recommends apt-utils 2>&1
12
16
13
17
# Verify git and needed tools are installed
14
- RUN apt-get install -y git procps
15
-
16
- # Remove outdated yarn from /opt and install via package
17
- # so it can be easily updated via apt-get upgrade yarn
18
- RUN rm -rf /opt/yarn-* \
18
+ RUN apt-get install -y git procps \
19
+ # Remove outdated yarn from /opt and install via package
20
+ # so it can be easily updated via apt-get upgrade yarn
21
+ && rm -rf /opt/yarn-* \
19
22
&& rm -f /usr/local/bin/yarn \
20
23
&& rm -f /usr/local/bin/yarnpkg \
21
24
&& apt-get install -y curl apt-transport-https lsb-release \
22
25
&& curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]' )/pubkey.gpg | apt-key add - 2>/dev/null \
23
26
&& echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
24
27
&& apt-get update \
25
- && apt-get -y install --no-install-recommends yarn
26
-
27
- # Install tslint and typescript
28
- RUN npm install -g tslint typescript
29
-
30
- # Clean up
31
- RUN apt-get autoremove -y \
28
+ && apt-get -y install --no-install-recommends yarn \
29
+ # Install tslint and typescript
30
+ && npm install -g tslint typescript \
31
+ # Clean up
32
+ && apt-get autoremove -y \
32
33
&& apt-get clean -y \
33
34
&& rm -rf /var/lib/apt/lists/*
34
- ENV DEBIAN_FRONTEND=dialog
35
35
36
- # Set the default shell to bash instead of sh
37
- ENV SHELL /bin/bash
36
+ ENV DEBIAN_FRONTEND=dialog
0 commit comments