-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.client
More file actions
38 lines (31 loc) · 1.06 KB
/
Dockerfile.client
File metadata and controls
38 lines (31 loc) · 1.06 KB
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
32
33
34
35
36
37
38
FROM python:3.12-slim AS base
RUN apt-get update && apt-get install -y \
vim \
net-tools \
sqlite3 \
libsqlite3-dev \
gcc \
build-essential \
iputils-ping \
iproute2 && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Instalar dependencias del cliente
COPY ./client/requirements.txt /app/client_requirements.txt
RUN pip install --no-cache-dir -r /app/client_requirements.txt
COPY ./streamlit_app/streamlit_report.md /app/streamlit_report.md
COPY ./streamlit_app/streamlit_report2.md /app/streamlit_report2.md
COPY ./streamlit_app/streamlit_report3.md /app/streamlit_report3.md
COPY wp2p.png /app/wp2p.png
COPY image.png /app/image.png
COPY streamlit.png /app/streamlit.png
# Instalar dependencias de la interfaz Streamlit
COPY ./streamlit_app/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
FROM base AS runtime
WORKDIR /app
COPY ./client /app/client
COPY ./streamlit_app /app
COPY ./client/startup.sh /app/startup.sh
RUN chmod +x ./startup.sh
CMD ["sh", "-c", "/app/startup.sh && tail -f /dev/null"]