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

add angular devcontainer #12

Merged
merged 1 commit into from
Apr 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#-----------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root for license information.
#-----------------------------------------------------------------------------------------

FROM openjdk:7
Copy link

@jamiebarrow jamiebarrow Feb 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bowdenk7, @Chuxel I was wondering if there was any specific reason to use openjdk:7 as the base image, and not some kind of NodeJS base image? For example, as in https://github.com/microsoft/vscode-dev-containers/blob/master/containers/javascript-node/.devcontainer/base.Dockerfile

Also, if this is the wrong place to be asking this, please ignore my ignorance :)


# Install git
RUN apt-get update && apt-get -y install git

# https support
RUN apt-get install apt-transport-https

# Install Node.js v10-stable
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
&& apt-get install -y nodejs

# Install yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update && apt-get install yarn=1.13.0-1

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "Angular Dev Env",
"dockerFile": "Dockerfile",
"extensions": []
}