Spaces:
Runtime error
Runtime error
Delete Dockerfile
Browse files- Dockerfile +0 -26
Dockerfile
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 1 |
-
# Use an official Python runtime as a parent image
|
| 2 |
-
FROM python:3.11-slim
|
| 3 |
-
|
| 4 |
-
# Set the working directory in the container
|
| 5 |
-
WORKDIR /app
|
| 6 |
-
|
| 7 |
-
# Copy the current directory contents into the container at /app
|
| 8 |
-
COPY . /app
|
| 9 |
-
|
| 10 |
-
# Create a cache directory and set permissions
|
| 11 |
-
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
|
| 12 |
-
|
| 13 |
-
# Install any needed packages specified in requirements.txt
|
| 14 |
-
RUN pip install --no-cache-dir -r Requirements.txt
|
| 15 |
-
|
| 16 |
-
# Set the environment variable for Hugging Face cache location
|
| 17 |
-
ENV HF_HOME=/app/.cache
|
| 18 |
-
|
| 19 |
-
# Make port 8080 available to the world outside this container
|
| 20 |
-
EXPOSE 8080
|
| 21 |
-
|
| 22 |
-
# Define environment variable for Flask app port
|
| 23 |
-
ENV PORT=8080
|
| 24 |
-
|
| 25 |
-
# Run the application using Gunicorn
|
| 26 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "application:application"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|