Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +1 -3
Dockerfile
CHANGED
|
@@ -22,12 +22,10 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
| 22 |
COPY --chown=user . /app
|
| 23 |
|
| 24 |
# Set environment variables
|
| 25 |
-
ENV FLASK_APP=app.py
|
| 26 |
-
ENV FLASK_ENV=production
|
| 27 |
ENV HF_HOME=/home/user/.cache/huggingface
|
| 28 |
|
| 29 |
# Expose the port the app runs on
|
| 30 |
EXPOSE 7860
|
| 31 |
|
| 32 |
# Command to run the application
|
| 33 |
-
CMD ["
|
|
|
|
| 22 |
COPY --chown=user . /app
|
| 23 |
|
| 24 |
# Set environment variables
|
|
|
|
|
|
|
| 25 |
ENV HF_HOME=/home/user/.cache/huggingface
|
| 26 |
|
| 27 |
# Expose the port the app runs on
|
| 28 |
EXPOSE 7860
|
| 29 |
|
| 30 |
# Command to run the application
|
| 31 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|