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(Dockerfile): Create Necessary Directories at Build time (#2277)

Christoph Reiter30d084e69610
diff --git a/Dockerfile b/Dockerfile
index d511fa58e8..fd087eae39 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,6 +26,10 @@ RUN npm install --no-audit
ENV NODE_OPTIONS="--max-old-space-size=2048"
RUN npm run frontend
+# Create directories for the volumes to inherit
+# the correct permissions
+RUN mkdir -p /app/client/public/images /app/api/logs
+
# Node API setup
EXPOSE 3080
ENV HOST=0.0.0.0