Spaces:
Sleeping
Sleeping
updated 2 files
Browse files- Dockerfile +24 -0
- requirements.txt +3 -0
Dockerfile
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
+
|
| 3 |
+
# Install Node.js
|
| 4 |
+
RUN apt-get update && apt-get install -y nodejs npm
|
| 5 |
+
|
| 6 |
+
WORKDIR /app
|
| 7 |
+
|
| 8 |
+
# Copy and install Python requirements
|
| 9 |
+
COPY requirements.txt .
|
| 10 |
+
RUN pip install -r requirements.txt
|
| 11 |
+
|
| 12 |
+
# Copy and install Node.js dependencies
|
| 13 |
+
COPY package.json package-lock.json ./
|
| 14 |
+
RUN npm install
|
| 15 |
+
|
| 16 |
+
# Copy the rest of the application
|
| 17 |
+
COPY . .
|
| 18 |
+
|
| 19 |
+
# Expose the port the app runs on
|
| 20 |
+
EXPOSE 7860
|
| 21 |
+
|
| 22 |
+
# Command to run the application
|
| 23 |
+
CMD ["python", "app.py"]
|
| 24 |
+
|
requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is intentionally left empty as we don't have any Python-specific dependencies.
|
| 2 |
+
# However, Hugging Face expects this file to exist.
|
| 3 |
+
|