File size: 610 Bytes
4c8079c
 
5b7ae81
 
 
4c8079c
 
 
 
5b7ae81
 
 
 
 
 
be9cdae
5b7ae81
 
 
 
 
4c8079c
 
 
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
FROM ghcr.io/astral-sh/uv:0.11.5-python3.12-trixie-slim
# Using the uv image

WORKDIR /app

# Setting up dependencies and stuff to be sure compilation is also working
# RUN apt-get update \
#  && apt-get install -y --no-install-recommends build-essential python3-dev \
#  && rm -rf /var/lib/apt/lists/*

COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev

COPY app.py ./
COPY state.py ./
COPY .streamlit/ ./.streamlit/
COPY tabs/ ./tabs/
COPY utils/ ./utils/

EXPOSE 8501

ENV PATH="/app/.venv/bin:$PATH"

CMD ["sh", "-c", "streamlit run app.py --server.port=${PORT:-8501} --server.address=0.0.0.0"]