FROM structr/structr:3.2-SNAPSHOT
ENV WORK_DIR /var/lib/structr

ENV PATH="${PATH}:${WORK_DIR}/scripts"
ENV TERM="xterm"


COPY templates/structr.conf ${WORK_DIR}/

RUN apk add git tree ncurses openssh-client bash curl

RUN mkdir /root/.ssh
RUN chmod 700 /root/.ssh
ADD templates/id_rsa /root/.ssh
ADD templates/id_rsa.pub /root/.ssh
ADD templates/known_hosts /root/.ssh
RUN chmod 600 /root/.ssh/*
ADD templates/.gitconfig /root


