FatimaDataScientist72 commited on
Commit
3883cda
·
verified ·
1 Parent(s): fbadb79

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -1,8 +1,15 @@
1
  FROM python:3.11-slim
 
2
  WORKDIR /app
 
3
  RUN apt-get update && apt-get install -y gcc && rm -rf /var/lib/apt/lists/*
 
4
  COPY requirements.txt .
5
  RUN pip install --no-cache-dir -r requirements.txt
6
- COPY app.py .
 
 
 
7
  EXPOSE 7860
 
8
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.11-slim
2
+
3
  WORKDIR /app
4
+
5
  RUN apt-get update && apt-get install -y gcc && rm -rf /var/lib/apt/lists/*
6
+
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ # Copies all repository files (including structural_patterns.py) instead of just app.py
11
+ COPY . .
12
+
13
  EXPOSE 7860
14
+
15
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]