From 95358d5d902e82c0c3c548ea2dae3e75eedab688 Mon Sep 17 00:00:00 2001 From: Gertjan Date: Wed, 4 Dec 2024 11:54:05 +0000 Subject: [PATCH] Pin node docker image version and other dev changes. - Pinning node image version prevents breaking upgrades. - Add python extensions to vscode devcontainer config - Make docker pull all required parent images in ./scripts/build.sh --- .devcontainer/devcontainer.json | 2 ++ .vscode/launch.json | 2 +- Dockerfile | 2 +- scripts/build.sh | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 16cc9c7..6686295 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -21,6 +21,8 @@ "vscode": { "extensions": [ "charliermarsh.ruff", + "ms-python.debugpy", + "ms-python.python", "Vue.volar" ] } diff --git a/.vscode/launch.json b/.vscode/launch.json index deaaa01..855ea2f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,7 +6,7 @@ "configurations": [ { "name": "BugHog", - "type": "python", + "type": "debugpy", "request": "launch", "program": "/app/bci/app.py", "purpose": [ diff --git a/Dockerfile b/Dockerfile index 8574700..570d62c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts-alpine as ui-build-stage +FROM node:22.12-alpine as ui-build-stage WORKDIR /app COPY /bci/web/vue/package*.json ./ RUN npm install diff --git a/scripts/build.sh b/scripts/build.sh index 10b7a20..67b1f10 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,3 +1,3 @@ #!/bin/sh -exec docker compose build +exec docker compose build --pull