Skip to content

Commit

Permalink
Add devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli committed Mar 22, 2021
1 parent fe3f6e0 commit a22d1d2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.163.1/containers/alpine/.devcontainer/base.Dockerfile

# [Choice] Alpine version: 3.13, 3.12, 3.11, 3.10
ARG VARIANT="3.13"
FROM mcr.microsoft.com/vscode/devcontainers/base:0-alpine-${VARIANT}

# ** [Optional] Uncomment this section to install additional packages. **
RUN apk update \
&& apk add --no-cache shellcheck
16 changes: 16 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Alpine",
"build": {
"dockerfile": "Dockerfile",
"args": { "VARIANT": "3.13" }
},
"settings": {
"terminal.integrated.shell.linux": "/bin/ash",
"shellcheck.enable": true,
"shellcheck.enableQuickFix": true,
"shellcheck.run": "onType",
"editor.formatOnSave": true
},
"extensions": ["timonwong.shellcheck", "esbenp.prettier-vscode"],
"remoteUser": "vscode"
}

0 comments on commit a22d1d2

Please sign in to comment.