الملفات
edited/Dockerfile
abbdelrhman_pasha 7f196fc0b4
فشلت بعض الفحوصات
/ deploy (push) Has been skipped
/ build_and_push_image (push) Failing after 13s
Update Dockerfile
2025-10-23 15:05:13 +00:00

21 أسطر
421 B
Docker

#(Base Image)
FROM python:3.11-slim
#(here /app mean name in the fastAPI i used)
WORKDIR /app
#(Copy and Install Dependancies/Libraries)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
#(Copy all files after install dependancies)
COPY . .
#(Port my app listen to )
EXPOSE 8000
#(Run app/file)
CMD ["uvicorn", "API:app", "--host", "0.0.0.0", "--port", "8000", "--log-config", "Log.yaml"]