diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..149718c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3.10-slim-bullseye + +ENV HOST=0.0.0.0 + +ENV LISTEN_PORT 8080 + +EXPOSE 8080 + +RUN apt-get update && apt-get install -y git + +COPY ./requirements.txt /app/requirements.txt + +RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt + +WORKDIR app/ + +COPY ./src /app/src +COPY ./.streamlit /app/.streamlit + +CMD ["streamlit", "run", "src/main.py", "--server.port", "8080"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7da2b51 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3" +services: +keepyourmouthshut: +image: keepyourmouthshut:latest +build: ./app +command: streamlit run src/main.py --server.port 8080 +volumes: + - ./src/:/app/src +ports: + - 8080:8080