cowork:starconnect:public:dockerfile
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| cowork:starconnect:public:dockerfile [2024/07/23 05:06] – alte Version wiederhergestellt (2023/09/25 19:38) 47.128.55.242 | cowork: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: | ||
| + | #FROM tiangolo/ | ||
| + | # python: | ||
| + | MAINTAINER StefanG. < | ||
| + | ENV ADIR="/ | ||
| + | LABEL " | ||
| + | LABEL com.example.label-with-value=" | ||
| + | LABEL version=" | ||
| + | LABEL description=" | ||
| + | that label-values can span multiple lines." | ||
| + | |||
| + | #ENV keyword2use=" | ||
| + | #RUN apt update && apt install -y < | ||
| + | # [Optional] Uncomment this section to install additional OS packages. | ||
| + | # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
| + | # && | ||
| + | RUN apt-get update && apt-get install -y build-essential curl software-properties-common git && rm -rf / | ||
| + | |||
| + | # set the working directory | ||
| + | RUN mkdir -p ADIR | ||
| + | WORKDIR ADIR | ||
| + | |||
| + | # install dependencies | ||
| + | COPY ./ | ||
| + | #RUN pip install --no-cache-dir --upgrade -r requirements.txt | ||
| + | # COPY requirements.txt / | ||
| + | #RUN pip --no-cache-dir install --upgrade pip pip-tools | ||
| + | RUN python3 -m pip install pip-tools | ||
| + | RUN pip install --no-cache-dir -r / | ||
| + | |||
| + | # copy the scripts to the folder | ||
| + | # eins von beiden Quellen aus dem online Repository oder lokal vom Entwicklungsrechner | ||
| + | ##RUN git clone https:// | ||
| + | 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 [" | ||
| + | CMD streamlit run streamlit_app.py | ||
| + | # docker build -t < | ||
| + | # docker run --rm < | ||