Dashboard Dockerfile의 arg, env 수정
This commit is contained in:
@@ -9,16 +9,8 @@ RUN apt-get update \
|
|||||||
COPY requirements-dashboard.txt requirements-dashboard.txt
|
COPY requirements-dashboard.txt requirements-dashboard.txt
|
||||||
RUN pip install --no-cache-dir --upgrade pip && pip install -r 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 PYTHONUNBUFFERED=1
|
||||||
ENV PYTHONIOENCODING=UTF-8
|
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 . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user