Priyanshu Kumar
commited on
Commit
·
8b9bef7
1
Parent(s):
43c03ea
Switch to Docker SDK for FastAPI app
Browse files- DOCKERFILE +0 -6
DOCKERFILE
CHANGED
@@ -1,16 +1,10 @@
|
|
1 |
FROM python:3.10
|
2 |
|
3 |
-
# Set up working directory
|
4 |
WORKDIR /app
|
5 |
-
|
6 |
-
# Copy files
|
7 |
COPY . .
|
8 |
|
9 |
-
# Install dependencies
|
10 |
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
|
12 |
-
# Expose port
|
13 |
EXPOSE 7860
|
14 |
|
15 |
-
# Start FastAPI using uvicorn
|
16 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
FROM python:3.10
|
2 |
|
|
|
3 |
WORKDIR /app
|
|
|
|
|
4 |
COPY . .
|
5 |
|
|
|
6 |
RUN pip install --no-cache-dir -r requirements.txt
|
7 |
|
|
|
8 |
EXPOSE 7860
|
9 |
|
|
|
10 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|