1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
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 . . # Allow running outside compose CMD flask --app heliopropa:application run --host=0.0.0.0