الملفات
edited/Dockerfile
abdelrhman aeeb5ff4c5
فشلت بعض الفحوصات
/ build_and_push_image (push) Failing after 13s
/ deploy (push) Has been skipped
edit Dockerfile
2025-10-23 17:36:28 +03:00

43 أسطر
905 B
Docker

<<<<<<< HEAD
#(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"]
=======
#(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"]
>>>>>>> origin/scripts