# Use the official Python base image FROM python:3.11-slim # Set the working directory inside the container WORKDIR /code # Copy the requirements file to the working directory COPY ./requirements.txt /code/requirements.txt # Install the Python dependencies RUN pip config --user set global.progress_bar off RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt # Copy the application code to the working directory COPY ./app /code/app COPY ./app/dot_env /code/app/.env COPY ./app/favicon.ico /code/favicon.ico COPY ./app/favicon.ico /code/app/favicon.ico # Expose the port on which the application will run EXPOSE 80 # Run the FastAPI application using uvicorn server #CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"] CMD ["uvicorn", "app.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "80"]