Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files- Dockerfile +19 -0
- test.py +1 -0
Dockerfile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use an official Python runtime as a parent image
|
| 2 |
+
FROM python:3.9
|
| 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 |
+
# Install any needed dependencies specified in requirements.txt
|
| 11 |
+
# If you have dependencies, uncomment the following line
|
| 12 |
+
# COPY requirements.txt /app/
|
| 13 |
+
# RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
+
|
| 15 |
+
# Define environment variable
|
| 16 |
+
ENV NAME World
|
| 17 |
+
|
| 18 |
+
# Run test.py when the container launches
|
| 19 |
+
CMD ["python", "test.py"]
|
test.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
print("good deployment to huggingface!!!")
|