likhonsheikhdev commited on
Commit
97a64e7
·
verified ·
1 Parent(s): 155c25c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image with Python and Node.js (needed for code-server + AI agent tools)
2
+ FROM python:3.11-slim
3
+
4
+ # Install basic dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ curl wget git build-essential \
7
+ nodejs npm gnupg \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Install code-server
11
+ RUN curl -fsSL https://code-server.dev/install.sh | sh
12
+
13
+ # Setup working dir
14
+ WORKDIR /workspace
15
+
16
+ # Copy files
17
+ COPY . /workspace
18
+
19
+ # Install Python dependencies
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ # Make entrypoint executable
23
+ RUN chmod +x /workspace/entrypoint.sh
24
+
25
+ # Expose code-server default port
26
+ EXPOSE 7860
27
+
28
+ # Run entrypoint (starts code-server + agent logic)
29
+ ENTRYPOINT ["/workspace/entrypoint.sh"]