FROM python:3.9-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY bot_with_api.py api.py main.py xC4.py xHeaders.py ./ COPY Pb2/ ./Pb2/ # Verify files RUN ls -la && ls -la Pb2/ EXPOSE 7860 ENV FLASK_APP=api.py ENV FLASK_ENV=production ENV TERM=xterm CMD ["python", "bot_with_api.py"]