Skip to content

Commit

Permalink
add devcontainer to isolate dotnet sdk 3 preview
Browse files Browse the repository at this point in the history
  • Loading branch information
gfritz authored and Krzysztof-Cieslak committed Aug 29, 2019
1 parent df242bc commit 46daf80
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------

FROM mcr.microsoft.com/dotnet/core/sdk:3.0

# Avoid warnings by switching to noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Configure apt and install packages
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils 2>&1 \
#
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
&& apt-get -y install git procps lsb-release \
#
# Clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

# Install fake and paket
RUN dotnet tool install -g fake-cli \
&& dotnet tool install -g paket

# add dotnet tools to path to pick up fake and paket installation
ENV PATH="${PATH}:/root/.dotnet/tools"

# Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=dialog
19 changes: 19 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// See https://aka.ms/vscode-remote/devcontainer.json for format details.
{
"name": "F# (.NET Core Latest)",
"dockerFile": "Dockerfile",

// Uncomment the next line if you want to publish any ports.
// "appPort": [],

// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "dotnet restore",

"extensions": [
"Ionide.Ionide-fsharp",
"ms-vscode.csharp"
],
"settings": {
"FSharp.fsacRuntime":"netcore"
}
}

0 comments on commit 46daf80

Please sign in to comment.