FROM python:3.9 WORKDIR /code # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy all files COPY . . # Expose the port you want EXPOSE 5000 # Run your frontend script CMD ["python", "app_frontend.py"]