Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🐳 fix: Update `.devcontainer` Files (#1712)

Ryohei Kamiyad25ff7632aa9
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 0000000000..7f5566fb97
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,5 @@
+FROM node:18-bullseye
+
+RUN useradd -m -s /bin/bash vscode
+RUN mkdir -p /workspaces && chown -R vscode:vscode /workspaces
+WORKDIR /workspaces
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index ebfd2685ee..a3bb780550 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -13,5 +13,6 @@
}
},
"postCreateCommand": "",
- "features": { "ghcr.io/devcontainers/features/git:1": {} }
+ "features": { "ghcr.io/devcontainers/features/git:1": {} },
+ "remoteUser": "vscode"
}
diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml
index c67fca6301..277ac84f85 100644
--- a/.devcontainer/docker-compose.yml
+++ b/.devcontainer/docker-compose.yml
@@ -2,7 +2,9 @@ version: "3.8"
services:
app:
- image: node:19-bullseye
+ build:
+ context: ..
+ dockerfile: .devcontainer/Dockerfile
# restart: always
links:
- mongodb
@@ -30,8 +32,8 @@ services:
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
- # Uncomment the next line to use a non-root user for all processes - See https://aka.ms/vscode-remote/containers/non-root for details.
- # user: vscode
+ # Use a non-root user for all processes - See https://aka.ms/vscode-remote/containers/non-root for details.
+ user: vscode
# Overrides default command so things don't shut down after the process ends.
command: /bin/sh -c "while sleep 1000; do :; done"