Spaces:
Sleeping
Sleeping
Upload Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use a standard Hugging Face base image with Python 3.12
|
| 2 |
+
FROM huggingface/base-python:3.12
|
| 3 |
+
|
| 4 |
+
# Copy all your application files into the container's /app directory
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
COPY . .
|
| 7 |
+
|
| 8 |
+
# Make the setup script executable
|
| 9 |
+
RUN chmod +x setup.sh
|
| 10 |
+
|
| 11 |
+
# Run the setup script to install all dependencies
|
| 12 |
+
# This happens only ONCE when the Space is being built.
|
| 13 |
+
RUN ./setup.sh
|
| 14 |
+
|
| 15 |
+
# This command runs your application every time the Space starts up
|
| 16 |
+
CMD ["python", "app.py"]
|