cleanup and prepare for docker image rebuilds

This commit is contained in:
t3chn0m4g3
2020-06-26 14:34:05 +00:00
parent 6a98496e8c
commit 0031980416
29 changed files with 102 additions and 2254 deletions

View File

@ -1,4 +1,4 @@
FROM alpine:3.10
FROM alpine:latest
#
# Include dist
ADD dist/ /root/dist/
@ -12,6 +12,7 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
libffi-dev \
libressl-dev \
linux-headers \
py3-pip \
py3-yarl \
python3 \
python3-dev && \
@ -21,7 +22,7 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
cd /opt/tanner/ && \
# git fetch origin pull/364/head:test && \
# git checkout test && \
cp /root/dist/config.py /opt/tanner/tanner/ && \
cp /root/dist/config.yaml /opt/tanner/tanner/data && \
pip3 install --no-cache-dir setuptools && \
pip3 install --no-cache-dir -r requirements.txt && \
python3 setup.py install && \
@ -35,8 +36,7 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
docker \
docs \
requirements.txt \
setup.py \
tanner/data && \
setup.py && \
cd / && \
#
# Setup configs, user, groups