From b04cc9b4545759a238c2ea8f2c1559e929695654 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 6 Mar 2024 23:59:15 +0800 Subject: [PATCH] docker deploy --- Dockerfile | 13 +++++++++++++ start.sh | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 Dockerfile create mode 100644 start.sh 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