This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
containers/typescript-node-8/.devcontainer Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,17 @@ FROM node:8
7
7
8
8
# Configure apt
9
9
ENV DEBIAN_FRONTEND=noninteractive
10
+
11
+ # Set the default shell to bash instead of sh
10
12
ENV SHELL /bin/bash
11
13
14
+
12
15
RUN apt-get update \
13
16
&& apt-get -y install --no-install-recommends apt-utils 2>&1 \
14
- && apt-get install -y git procps \
17
+ # Verify git and needed tools are installed
18
+ && 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
15
21
&& rm -rf /opt/yarn-* \
16
22
&& rm -f /usr/local/bin/yarn \
17
23
&& rm -f /usr/local/bin/yarnpkg \
@@ -20,7 +26,9 @@ RUN apt-get update \
20
26
&& echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
21
27
&& apt-get update \
22
28
&& apt-get -y install --no-install-recommends yarn \
29
+ # Install tslint and typescript
23
30
&& npm install -g tslint typescript \
31
+ # Clean up
24
32
&& apt-get autoremove -y \
25
33
&& apt-get clean -y \
26
34
&& rm -rf /var/lib/apt/lists/*
You can’t perform that action at this time.
0 commit comments