-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 914 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM docker.resel.fr/resel/docker/alpine-resel
MAINTAINER Benjamin Somers <bsomers@resel.fr>
ARG PRIVATE_TOKEN
RUN apk add --no-cache openssh nodejs npm python3 py3-pip gcc python3-dev libc-dev
RUN npm install -g jsdoc
RUN pip3 install GitPython Jinja2 PyYAML Sphinx sphinx-js recommonmark sphinx_rtd_theme python-gitlab termcolor
RUN mkdir -p /srv/vizir/
COPY app /srv/vizir/
RUN chmod +x /srv/vizir/vizir
RUN mkdir -p ~/.ssh/
ADD git.priv /root/.ssh/git.priv
RUN chmod 0600 /root/.ssh/git.priv
RUN ssh-keyscan -p 43000 git.resel.fr >> ~/.ssh/known_hosts
RUN echo -e '\
host git.resel.fr\n\
HostName git.resel.fr\n\
IdentityFile /root/.ssh/git.priv\n\
User git\n\
' >> ~/.ssh/config
RUN sed -i "s/\$PRIVATE_TOKEN/$PRIVATE_TOKEN/" /srv/vizir/vzr/constants.py
RUN git config --global user.email vizir@resel.fr
RUN git config --global user.name Vizir
ENV PATH="/srv/vizir:${PATH}"
ENTRYPOINT []