Benutzer-Werkzeuge

Webseiten-Werkzeuge


cowork:starconnect:public:dockerfile

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
cowork:starconnect:public:dockerfile [2025/04/19 20:08] – alte Version wiederhergestellt (2025/04/16 02:46) 3.144.156.43cowork:starconnect:public:dockerfile [2025/05/05 20:49] (aktuell) – alte Version wiederhergestellt (2023/11/07 16:40) 18.118.11.120
Zeile 1: Zeile 1:
 +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
 +MAINTAINER StefanG. <Mr.Bit@liebt-dich.info>
 +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 <packages>
 +# [Optional] Uncomment this section to install additional OS packages.
 +# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
 +#     && apt-get -y install --no-install-recommends <your-package-list-here>
 +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 <port> [<port>/<protocol>...]
 +
 +# 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 <containername> .
 +# docker run --rm <containername>
/var/services/web/dokuwiki/data/pages/cowork/starconnect/public/dockerfile.txt · Zuletzt geändert: von 18.118.11.120