docker deploy

This commit is contained in:
leo
2024-03-06 23:59:15 +08:00
parent 230eafb5e3
commit b04cc9b454
2 changed files with 15 additions and 0 deletions

13
Dockerfile Normal file
View File

@@ -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"]

2
start.sh Normal file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
streamlit run --server.port 5005 --server.enableCORS false ./main.py