FROM python:3.9-slim-bullseye ENV VIRTUAL_ENV=/opt/venv RUN python3 -m venv $VIRTUAL_ENV ENV PATH="$VIRTUAL_ENV/bin:$PATH" # Install dependencies: COPY requirements.txt . RUN pip install --upgrade pip &&\ pip install wheel &&\ pip install -r requirements.txt # Build the whole stuff COPY . . run cp config.yml-dist config.yml # Allow running outside compose CMD flask --app heliopropa:application run --host=0.0.0.0