HerzaJ commited on
Commit
e9a9497
·
verified ·
1 Parent(s): a83bb12

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && \
6
+ apt-get install -y git nodejs npm curl && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ RUN git clone --depth 1 https://github.com/presenton/presenton.git .
10
+
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ RUN cd frontend && npm install && npm run build
14
+
15
+ EXPOSE 7860
16
+
17
+ ENV PORT=7860
18
+ ENV HOST=0.0.0.0
19
+
20
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]