This commit is contained in:
t3chn0m4g3
2020-02-25 16:59:22 +00:00
parent 6bfcf8b1c4
commit 70dca02ce4
19 changed files with 29 additions and 25 deletions

View File

@ -1,10 +1,11 @@
### This is only for testing purposes, do NOT use for production
FROM alpine
FROM alpine:latest
#
ADD dist/ /root/dist/
#
# Install packages
RUN apk -U --no-cache add \
RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
apk -U --no-cache add \
build-base \
coreutils \
git \
@ -15,7 +16,7 @@ RUN apk -U --no-cache add \
python \
python-dev \
sqlite && \
#
# Install php sandbox from git
git clone --depth=1 https://github.com/rep/hpfeeds /opt/hpfeeds && \
cd /opt/hpfeeds/broker && \
@ -23,10 +24,10 @@ RUN apk -U --no-cache add \
cp /root/dist/adduser.sql . && \
cd /opt/hpfeeds/broker && timeout 5 python broker.py || : && \
sqlite3 db.sqlite3 < adduser.sql && \
#
#python setup.py build && \
#python setup.py install && \
#
# Clean up
apk del --purge autoconf \
build-base \
@ -35,7 +36,7 @@ RUN apk -U --no-cache add \
python-dev && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
#
# Set workdir and start glastopf
WORKDIR /opt/hpfeeds/broker
CMD python broker.py