Skip to content

Commit

Permalink
Actual functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
KenwoodFox committed Mar 25, 2024
1 parent da3127f commit f2c8300
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
10 changes: 4 additions & 6 deletions MC-UI/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@ 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
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"]
3 changes: 3 additions & 0 deletions MC-UI/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions MC-UI/ui.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Streamlit will be what our UI is built upon
import streamlit as st

st.write("Hello world")

0 comments on commit f2c8300

Please sign in to comment.