Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 0aa8765

Browse files
committed
put commends back inline to help demonstrate what commands mean
1 parent 0848096 commit 0aa8765

File tree

1 file changed

+9
-1
lines changed
  • containers/typescript-node-8/.devcontainer

1 file changed

+9
-1
lines changed

containers/typescript-node-8/.devcontainer/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ FROM node:8
77

88
# Configure apt
99
ENV DEBIAN_FRONTEND=noninteractive
10+
11+
# Set the default shell to bash instead of sh
1012
ENV SHELL /bin/bash
1113

14+
1215
RUN apt-get update \
1316
&& 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
1521
&& rm -rf /opt/yarn-* \
1622
&& rm -f /usr/local/bin/yarn \
1723
&& rm -f /usr/local/bin/yarnpkg \
@@ -20,7 +26,9 @@ RUN apt-get update \
2026
&& echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
2127
&& apt-get update \
2228
&& apt-get -y install --no-install-recommends yarn \
29+
# Install tslint and typescript
2330
&& npm install -g tslint typescript \
31+
# Clean up
2432
&& apt-get autoremove -y \
2533
&& apt-get clean -y \
2634
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)