Add version management dashboard
This commit is contained in:
25
Dockerfile.dashboard
Normal file
25
Dockerfile.dashboard
Normal file
@@ -0,0 +1,25 @@
|
||||
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.txt
|
||||
RUN pip install --no-cache-dir --upgrade pip && pip install -r requirements.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"]
|
||||
Reference in New Issue
Block a user