Space is not recognizing the app.py file although uploaded to a docker space for Flask API

Space is not recognizing the app.py file although uploaded to a docker space for Flask API

1 Like

Docker spaces offer a high degree of freedom, but on the other hand, if you don’t configure them yourself, nothing will happen.:sweat_smile:

app.py is not executed automatically.

FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["python", "app.py"]