FROM python:3.11 #FROM tiangolo/uvicorn-gunicorn:python3.11 # python:latest debian:12 python:rc # docker run -it --rm quay.io/python-devs/ci-image:master ENV ADIR="/opt/app" LABEL "ch.starconnect.academy"="Star Connect Akademie" LABEL com.example.label-with-value="foo" LABEL version="1.0" LABEL description="ein erster Versuch die Spielwiese zu beschreiben ... This text illustrates \ that label-values can span multiple lines." #ENV keyword2use="ADD COPY ENV EXPOSE FROM LABEL STOPSIGNAL USER VOLUME WORKDIR ONBUILD" #RUN apt update && apt install -y # [Optional] Uncomment this section to install additional OS packages. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ # && apt-get -y install --no-install-recommends RUN apt-get update && apt-get install -y build-essential curl software-properties-common git && rm -rf /var/lib/apt/lists/* # set the working directory RUN mkdir -p ADIR WORKDIR ADIR # install dependencies COPY ./30days/requirements.txt /tmp/pip-tmp/ #RUN pip install --no-cache-dir --upgrade -r requirements.txt # COPY requirements.txt /tmp/pip-tmp/ #RUN pip --no-cache-dir install --upgrade pip pip-tools RUN python3 -m pip install pip-tools RUN pip install --no-cache-dir -r /tmp/pip-tmp/requirements.txt # copy the scripts to the folder # eins von beiden Quellen aus dem online Repository oder lokal vom Entwicklungsrechner ##RUN git clone https://62c66bd35e6524a3b8cd6048436554a464593f49@gitea.starconnect.ch/ID19740720aGremhnn/note.git . COPY ./30days/ . #EXPOSE [/...] # start the server ( wahrscheinlich geht das so nicht möchte statische Dateien aus webroot u.a. sowie stremlit bereitstellen können ) RUN uvicorn main:app --reload #streamlit run streamlit_app.py #CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"] CMD streamlit run streamlit_app.py # docker build -t . # docker run --rm