UPDATED devcontainer configuration to enable VS CODE WEB development

This commit is contained in:
Marek Lesko
2025-07-10 07:29:50 +00:00
parent a8848a3e5e
commit 733b1bd1af
6 changed files with 66 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ RUN bash ./installSQLtools.sh \
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
EXPOSE 4200
# [Optional] Uncomment this line to install global node packages.
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install --lts && nvm use --lts && npm install -g typescript" 2>&1
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1

View File

@@ -11,7 +11,8 @@ services:
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
ports:
- "4200:4200"
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
network_mode: host