Bluestrikeai commited on
Commit
8175c49
·
verified ·
1 Parent(s): 6394c2d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -41
Dockerfile CHANGED
@@ -1,41 +1,19 @@
1
- FROM python:3.11-slim
2
-
3
- # System dependencies
4
- RUN apt-get update && apt-get install -y \
5
- curl \
6
- gnupg \
7
- build-essential \
8
- zip \
9
- && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
10
- && apt-get install -y nodejs \
11
- && apt-get clean \
12
- && rm -rf /var/lib/apt/lists/*
13
-
14
- WORKDIR /app
15
-
16
- # Python dependencies
17
- COPY requirements.txt .
18
- RUN pip install --no-cache-dir -r requirements.txt
19
-
20
- # Frontend build
21
- COPY frontend/ /app/frontend/
22
- WORKDIR /app/frontend
23
- RUN npm ci && npm run build
24
- RUN mkdir -p /app/static && cp -r dist/* /app/static/
25
-
26
- # Backend
27
- WORKDIR /app
28
- COPY app/ /app/app/
29
- COPY start.sh /app/start.sh
30
- RUN chmod +x /app/start.sh
31
-
32
- # Create temp directories
33
- RUN mkdir -p /tmp/nexus_projects /tmp/nexus_previews
34
-
35
- EXPOSE 7860
36
-
37
- ENV PYTHONUNBUFFERED=1
38
- ENV HOST=0.0.0.0
39
- ENV PORT=7860
40
-
41
- CMD ["./start.sh"]
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ COPY main.py .
9
+ COPY config.py .
10
+ COPY agents.py .
11
+ COPY pipeline.py .
12
+ COPY schemas.py .
13
+ COPY index.html .
14
+
15
+ RUN mkdir -p /tmp/nexus_projects
16
+
17
+ EXPOSE 7860
18
+
19
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]