Dashboard Dockerfile의 arg, env 수정

This commit is contained in:
minchulahn
2023-08-11 14:27:20 +09:00
parent e2a5608b78
commit fc912b419b

View File

@@ -9,16 +9,8 @@ RUN apt-get update \
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 . .