Spaces:
Sleeping
Sleeping
Vela
commited on
Commit
Β·
1c1e215
1
Parent(s):
911d300
added readme file
Browse files- Dockerfile +17 -0
- README.md +1 -1
Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python runtime as the base image
|
2 |
+
FROM python:3.9-slim
|
3 |
+
|
4 |
+
# Set the working directory inside the container
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy the local files into the container
|
8 |
+
COPY . /app
|
9 |
+
|
10 |
+
# Install the dependencies
|
11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
+
|
13 |
+
# Expose the port the app will run on (FastAPI default is 8000)
|
14 |
+
EXPOSE 7860
|
15 |
+
|
16 |
+
# Command to run the application using uvicorn
|
17 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
title: Learn Machine Learning
|
3 |
-
emoji:
|
4 |
colorFrom: yellow
|
5 |
colorTo: pink
|
6 |
sdk: docker
|
|
|
1 |
---
|
2 |
title: Learn Machine Learning
|
3 |
+
emoji: π
|
4 |
colorFrom: yellow
|
5 |
colorTo: pink
|
6 |
sdk: docker
|