-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (29 loc) · 1.09 KB
/
Copy pathDockerfile
File metadata and controls
40 lines (29 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM python:3.12-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
# Allow git to operate on host-mounted volumes regardless of directory ownership.
# The container runs as root while workspace files are typically owned by the
# host user — git 2.35.2+ rejects this without explicit safe.directory config.
RUN git config --global --add safe.directory '*'
WORKDIR /app
# Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Language servers for LSP-enhanced language tools
RUN npm install -g pyright typescript typescript-language-server
# Application code
COPY anyide/ ./anyide/
# Admin dashboard (built)
COPY admin/dist/ ./static/admin/
# Copy entrypoint script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Create data, secrets, and skills directories
RUN mkdir -p /data /secrets /skills
EXPOSE 8080
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["uvicorn", "anyide.main:app", "--host", "0.0.0.0", "--port", "8080"]