forked from datagemsai/ChartGPT-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 855 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (24 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM python:3.11.4-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
supervisor \
&& rm -rf /var/lib/apt/lists/*
COPY api ./api
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY app ./app
COPY chartgpt ./chartgpt
COPY .streamlit ./.streamlit/
COPY media ./media
EXPOSE $PORT
HEALTHCHECK CMD curl --fail http://localhost:$PORT/_stcore/health
# Multi-page application, after renaming `app/_pages/` to `app/pages/`:
# CMD ["sh", "-c", "python -m streamlit run app/Intro.py --server.port=$PORT --server.address=0.0.0.0"]
# Single-page application:
# CMD ["sh", "-c", "python -m streamlit run app/Home.py --server.port=$PORT --server.address=0.0.0.0"]
CMD ["/usr/bin/supervisord"]