Gopal05 commited on
Commit
121333e
·
verified ·
1 Parent(s): 4c895d2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -1,12 +1,21 @@
1
- FROM python:3.10
2
 
3
  WORKDIR /app
4
 
5
  COPY . /app
6
 
 
 
 
 
 
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
 
 
 
9
  EXPOSE 7860
10
  EXPOSE 8000
11
 
12
- CMD bash -c "uvicorn main:app --host 0.0.0.0 --port 8000 & python ui.py"
 
1
+ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
  COPY . /app
6
 
7
+ RUN apt-get update && apt-get install -y \
8
+ build-essential \
9
+ gcc \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ RUN pip install --upgrade pip
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ ENV PYTHONUNBUFFERED=1
16
+ ENV BACKEND_URL=http://127.0.0.1:8000
17
+
18
  EXPOSE 7860
19
  EXPOSE 8000
20
 
21
+ CMD sh -c "uvicorn main:app --host 0.0.0.0 --port 8000 & python ui.py"