Dockerfile 456 Bytes
FROM python:3.6

ENV PATH="/usr/local/bin:$PATH"

COPY . /srv/apps/sun/

WORKDIR /root/.ssh/

ADD ssh/id_rsa .

WORKDIR /srv/apps/sun/

RUN chmod -R 600 /root/.ssh/id_rsa \
    && echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config \
    && mkdir -p /data/log/sun/app

RUN cp sun/settings.py sun/settings_local.pydo

RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt

CMD bash -c 'python manage.py runserver 0.0.0.0:8080'