-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Basis-Image | ||
FROM python:3.10 | ||
|
||
# Arbeitsverzeichnis im Container festlegen | ||
WORKDIR /msf_chatbot | ||
|
||
# Abhängigkeiten in das Arbeitsverzeichnis kopieren | ||
COPY requirements.txt . | ||
|
||
# Python-Abhängigkeiten installieren | ||
RUN pip install -r requirements.txt | ||
|
||
# Den gesamten lokalen Quellcode in das Arbeitsverzeichnis kopieren | ||
COPY . . | ||
|
||
# Ausführungsberechtigungen für das Startskript festlegen | ||
RUN chmod +x start.sh | ||
|
||
# Den Port, den die Anwendung verwendet, freigeben | ||
EXPOSE 8501 | ||
|
||
# Das Startskript ausführen, wenn der Container gestartet wird | ||
CMD ["./start.sh"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
python ingestion.py | ||
sleep 300 # Wartet 5 Minuten | ||
streamlit run main.py |