Spaces:
Sleeping
Sleeping
Commit ·
82ebf76
1
Parent(s): b6f6030
Added dockerfile for migrating the current implementation
Browse files- Dockerfile +12 -0
Dockerfile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
COPY requirements.txt
|
| 6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
+
RUN python -c "import nltk; nltk.download('vader_lexicon', quiet=True); nltk.download(punkt_tab', quiet=True)"
|
| 8 |
+
|
| 9 |
+
COPY ..
|
| 10 |
+
EXPOSE 7860
|
| 11 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 12 |
+
|