File tree Expand file tree Collapse file tree
docker/react_ui_devcontainer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# Docker Compose configuration #
33################################
44
5- # Docker compose project name must match directory name of the project to allow devcontainer to communicate with other containers
5+ # Must match Docker Compose project name used to start the other service containers to allow devcontainer
6+ # to communicate with them (setup.sh derives this from the directory basename by default)
67COMPOSE_PROJECT_NAME=react-ui
78
89# Docker compose ports for Docs server instances
Original file line number Diff line number Diff line change 1- FROM debian:bookworm AS react-ui-devcontainer
1+ FROM debian:bookworm-slim AS react-ui-devcontainer
22
33# Build arguments for user configuration
44# Those can be changed using fixuid's remapping feature when running the container
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ DEFAULT_USER_ID=1000
55DEFAULT_GROUP_ID=1000
66
77set -e
8- trap ' echo "Failed to setup project"; rf -f .env.temp; exit 1' ERR
8+ trap ' echo "Failed to set up project"; rm -f .env.temp; exit 1' ERR
99
1010# Function to handle sed command with cross-platform compatibility
1111sed_cmd () {
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ settings. See `.env.dist` for available options.
7272
7373Open the project in an IDE that supports [Development Containers] (e.g.
7474[Visual Studio Code][vscode-devcontainers], [JetBrains IDEs][jetbrains-devcontainers]).
75- The IDE will automatically setup the environment using the configuration in
75+ The IDE will automatically set up the environment using the configuration in
7676` .devcontainer/devcontainer.json` .
7777
7878# ### Using Docker Compose
@@ -193,7 +193,7 @@ mkdocs build
193193To start building JavaScript files in watch mode:
194194
195195` ` ` bash
196- npm run start
196+ npm start
197197` ` `
198198
199199To start the documentation server:
You can’t perform that action at this time.
0 commit comments