skip to Main Content

Python/Flask app in docker compose – package missing error

Here is the Dockerfile FROM python:3.11 WORKDIR /usr/src/app COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt COPY src/ . EXPOSE ${SERVER_PORT} ENV FLASK_APP=application/app.py ENV FLASK_ENV=development CMD ["flask", "run", "--host=0.0.0.0"] docker-compose.yml version: '3.8' services: mysql: container_name: mysql image: mysql:latest restart:…

VIEW QUESTION
Back To Top
Search