Spaces:
Runtime error
Runtime error
lanzhiwang
commited on
Commit
•
d2d75a3
1
Parent(s):
e90feb1
test dockerfile
Browse files- .streamlit/config.toml +10 -0
- Dockerfile +27 -0
.streamlit/config.toml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[theme]
|
2 |
+
primaryColor="#F63366"
|
3 |
+
backgroundColor="#FFFFFF"
|
4 |
+
secondaryBackgroundColor="#F0F2F6"
|
5 |
+
textColor="#262730"
|
6 |
+
font="sans serif"
|
7 |
+
|
8 |
+
[logger]
|
9 |
+
level = "debug"
|
10 |
+
messageFormat = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
Dockerfile
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# app/Dockerfile
|
2 |
+
|
3 |
+
FROM python:3.10-bullseye
|
4 |
+
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
RUN apt-get update && apt-get install -y \
|
8 |
+
build-essential \
|
9 |
+
curl \
|
10 |
+
software-properties-common \
|
11 |
+
git \
|
12 |
+
&& rm -rf /var/lib/apt/lists/*
|
13 |
+
|
14 |
+
COPY requirements.txt requirements.txt
|
15 |
+
|
16 |
+
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
17 |
+
|
18 |
+
COPY app.py app.py
|
19 |
+
COPY .streamlit .streamlit
|
20 |
+
|
21 |
+
EXPOSE 7860
|
22 |
+
|
23 |
+
ENV PYTHONUNBUFFERED=1
|
24 |
+
|
25 |
+
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
26 |
+
|
27 |
+
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|