Dar3devil commited on
Commit
dfdec70
·
verified ·
1 Parent(s): 712c22a

Add root Dockerfile for Space build

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1 \
4
+ PYTHONUNBUFFERED=1 \
5
+ PORT=8000
6
+
7
+ WORKDIR /app
8
+
9
+ COPY pyproject.toml README.md openenv.yaml ./
10
+ COPY support_ticket_env ./support_ticket_env
11
+ COPY server ./server
12
+ COPY inference.py ./inference.py
13
+
14
+ RUN pip install --no-cache-dir --upgrade pip && \
15
+ pip install --no-cache-dir .
16
+
17
+ EXPOSE 8000
18
+
19
+ CMD ["python", "-m", "server.app"]