diff --git a/MC-UI/Dockerfile b/MC-UI/Dockerfile index e1fa4af..77820cd 100644 --- a/MC-UI/Dockerfile +++ b/MC-UI/Dockerfile @@ -11,10 +11,6 @@ WORKDIR ${HOME} ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 -# Install deps -# RUN apt update \ -# && apt install -y gcc python3-dev python3-pip ffmpeg - # Python deps RUN pip install --upgrade pip COPY requirements.txt requirements.txt @@ -22,6 +18,8 @@ RUN pip install -r requirements.txt COPY . . -EXPOSE 5000 +EXPOSE 8501 + +HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health -ENTRYPOINT ./entrypoint.sh +ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] diff --git a/MC-UI/Makefile b/MC-UI/Makefile index a0ad438..86ed4d6 100644 --- a/MC-UI/Makefile +++ b/MC-UI/Makefile @@ -15,3 +15,6 @@ help: # List all commands and their descriptions setup: # Setup your local dev enviroment pipenv install -r requirements.txt + +dev: # Runs the UI locally with dev tools enabled + pipenv run streamlit run ui.py diff --git a/MC-UI/ui.py b/MC-UI/ui.py new file mode 100644 index 0000000..30ed4f4 --- /dev/null +++ b/MC-UI/ui.py @@ -0,0 +1,4 @@ +# Streamlit will be what our UI is built upon +import streamlit as st + +st.write("Hello world")