Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM huggingface/text-generation-inference:latest
|
| 2 |
+
|
| 3 |
+
# Copy your app code
|
| 4 |
+
COPY . /app
|
| 5 |
+
|
| 6 |
+
# Install any necessary dependencies
|
| 7 |
+
RUN pip install -r requirements.txt
|
| 8 |
+
|
| 9 |
+
# Expose the port the app will run on
|
| 10 |
+
EXPOSE 7860
|
| 11 |
+
|
| 12 |
+
# Start the app when the container launches
|
| 13 |
+
CMD ["python", "app.py"]
|