File tree Expand file tree Collapse file tree 4 files changed +40
-6
lines changed
Expand file tree Collapse file tree 4 files changed +40
-6
lines changed Original file line number Diff line number Diff line change 1+ FROM alpine:latest
2+
3+ # Install common tools
4+ RUN apk add --no-cache bash git \
5+ python3 py3-pip
6+
7+ # Setup default user
8+ ARG USERNAME=vscode
9+ ARG USER_UID=1000
10+ ARG USER_GID=$USER_UID
11+
12+ RUN addgroup -g $USER_GID -S $USERNAME && \
13+ adduser -u $USER_UID -S -G $USERNAME -s /bin/bash $USERNAME
14+
15+ # Switch to the default user
16+ USER $USERNAME
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " Smart Cooking API Development Container" ,
3+ "dockerFile" : " Dockerfile" ,
4+ "customizations" : {
5+ "settings" : {
6+ "terminal.integrated.shell.linux" : " /bin/bash"
7+ },
8+ "vscode" : {
9+ "extensions" : [
10+ " ms-python.black-formatter" ,
11+ " ms-python.python" ,
12+ " ms-python.isort"
13+ ]
14+ }
15+ },
16+ "postStartCommand" : " pip3 --disable-pip-version-check --no-cache-dir install -r requirements.txt --break-system-packages" ,
17+ "remoteUser" : " vscode"
18+ }
Original file line number Diff line number Diff line change 1+ * text =auto
Original file line number Diff line number Diff line change 22name : Lint
33
44on :
5- push : null
5+ push :
6+ branches :
7+ - main
68 pull_request : null
79
810permissions : {}
@@ -15,24 +17,21 @@ jobs:
1517 permissions :
1618 contents : read
1719 packages : read
18- # To report GitHub Actions status checks
1920 statuses : write
2021
2122 steps :
2223 - name : Checkout code
2324 uses : actions/checkout@v4
2425 with :
25- # super-linter needs the full git history to get the
26- # list of files that changed across commits
2726 fetch-depth : 0
2827
2928 - name : Super-linter
30- uses : super-linter/super-linter@v7.2.1
29+ uses : super-linter/super-linter@v7
3130 env :
32- # To report GitHub Actions status checks
3331 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3432 VALIDATE_ALL_CODEBASE : true
3533 VALIDATE_JSON_PRETTIER : false
3634 VALIDATE_PYTHON_ISORT : false
3735 VALIDATE_PYTHON_PYLINT : false
3836 VALIDATE_PYTHON_MYPY : false
37+ FILTER_REGEX_EXCLUDE : " (.devcontainer/Dockerfile|.github/pull_request_template.md|.github/ISSUE_TEMPLATE/*.md)"
You can’t perform that action at this time.
0 commit comments