25 lines
677 B
Docker
25 lines
677 B
Docker
From python:3.11-slim
|
|
|
|
WORKDIR app
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y install --no-install-recommends curl vim git openssh-client \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements-dashboard.txt requirements-dashboard.txt
|
|
RUN pip install --no-cache-dir --upgrade pip && pip install -r requirements-dashboard.txt
|
|
|
|
ARG SSH_PRIVATE_KEY
|
|
ARG GITHUB_TOKEN
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV PYTHONIOENCODING=UTF-8
|
|
ENV GITHUB_TOKEN=${GITHUB_TOKEN}
|
|
|
|
RUN mkdir /root/.ssh \
|
|
&& echo "$SSH_PRIVATE_KEY" >> /root/.ssh/id_rsa \
|
|
&& chmod 600 /root/.ssh/id_rsa \
|
|
&& ssh-keyscan github.com >> /root/.ssh/known_hosts
|
|
|
|
COPY . .
|
|
|
|
ENTRYPOINT ["streamlit", "run", "dashboard/main.py"] |