Bluestrikeai commited on
Commit
56f6e95
·
verified ·
1 Parent(s): e0d601d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install system dependencies, Node.js, and npm
4
+ RUN apt-get update && apt-get install -y curl \
5
+ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
6
+ && apt-get install -y nodejs \
7
+ && apt-get clean
8
+
9
+ # Set up working directory
10
+ WORKDIR /app
11
+
12
+ # Install Python requirements
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy application files
17
+ COPY . .
18
+
19
+ # Create workspace for the AI to build the app
20
+ RUN mkdir -p /app/workspace
21
+
22
+ # Expose ports for Gradio UI (7860) and Live Preview (3000)
23
+ EXPOSE 7860
24
+ EXPOSE 3000
25
+
26
+ CMD ["python", "app.py"]