29 lines
642 B
Docker
29 lines
642 B
Docker
# base image
|
|
FROM python:3.11-slim
|
|
|
|
#basic build prep
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
curl \
|
|
software-properties-common \
|
|
git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# copy over and install packages
|
|
COPY ./src/requirements.txt ./requirements.txt
|
|
RUN pip3 install cython
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
# streamlit-specific commands
|
|
RUN mkdir -p /root/.streamlit
|
|
RUN bash -c 'echo -e "\
|
|
[general]\n\
|
|
email = \"\"\n\
|
|
" > /root/.streamlit/credentials.toml'
|
|
# RUN bash -c 'echo -e "\
|
|
# [server]\n\
|
|
# baseUrlPath = \"/fin\"\n\
|
|
# " > /root/.streamlit/config.toml'
|
|
|
|
# copying everything over
|
|
COPY . . |