diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..da3a9b0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.10-slim-buster + +COPY requirements.txt /tmp/requirements.txt + +RUN pip install -r /tmp/requirements.txt -i https://pypi.douban.com/simple + +COPY . /app + +WORKDIR /app + +RUN chmod +x ./start.sh + +CMD ["./start.sh"] \ No newline at end of file diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..b52a876 --- /dev/null +++ b/start.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +streamlit run --server.port 5005 --server.enableCORS false ./main.py \ No newline at end of file