izaheeerr commited on
Commit
2db366e
·
verified ·
1 Parent(s): 4eff4d0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
-
2
  FROM python:3.12-slim
3
 
 
4
  RUN apt-get update && apt-get install -y \
5
  build-essential \
6
  libpq-dev \
@@ -13,6 +13,10 @@ RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  COPY . .
15
 
 
 
 
16
  EXPOSE 7860
17
 
18
- CMD ["uvicorn", "funsol.asgi:application", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
1
  FROM python:3.12-slim
2
 
3
+ # System deps
4
  RUN apt-get update && apt-get install -y \
5
  build-essential \
6
  libpq-dev \
 
13
 
14
  COPY . .
15
 
16
+ # Script ko executable banayein
17
+ RUN chmod +x entrypoint.sh
18
+
19
  EXPOSE 7860
20
 
21
+ # Entrypoint script run karein
22
+ CMD ["./entrypoint.sh"]