Abhishek7356 commited on
Commit ·
dadaf42
1
Parent(s): 097a9a4
updated code
Browse files- Dockerfile +4 -4
- requirements.txt +2 -0
Dockerfile
CHANGED
|
@@ -8,7 +8,7 @@ WORKDIR /app
|
|
| 8 |
COPY . /app
|
| 9 |
|
| 10 |
# Install system dependencies (optional: if you need them)
|
| 11 |
-
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# Install Python dependencies
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
@@ -17,8 +17,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
# Set Flask environment variables
|
| 20 |
-
ENV FLASK_RUN_HOST=0.0.0.0
|
| 21 |
-
ENV FLASK_RUN_PORT=7860
|
| 22 |
|
| 23 |
# Run the Flask app
|
| 24 |
-
CMD ["
|
|
|
|
| 8 |
COPY . /app
|
| 9 |
|
| 10 |
# Install system dependencies (optional: if you need them)
|
| 11 |
+
# RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# Install Python dependencies
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
# Set Flask environment variables
|
| 20 |
+
# ENV FLASK_RUN_HOST=0.0.0.0
|
| 21 |
+
# ENV FLASK_RUN_PORT=7860
|
| 22 |
|
| 23 |
# Run the Flask app
|
| 24 |
+
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|
requirements.txt
CHANGED
|
@@ -4,3 +4,5 @@ sentence-transformers
|
|
| 4 |
python-dotenv
|
| 5 |
numpy
|
| 6 |
openai
|
|
|
|
|
|
|
|
|
| 4 |
python-dotenv
|
| 5 |
numpy
|
| 6 |
openai
|
| 7 |
+
fastapi
|
| 8 |
+
gunicorn
|