Skip to content

Commit

Permalink
add docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaRampe committed Jun 19, 2023
1 parent 51ce410 commit d8dec55
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
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"]
4 changes: 0 additions & 4 deletions prep_env.ps1

This file was deleted.

4 changes: 4 additions & 0 deletions start.sh
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

0 comments on commit d8dec55

Please sign in to comment.