-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
24 lines (16 loc) · 918 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
FROM alpine:3.13
# dumb-init libldap nodejs postgresql-libs python2 py-flask-script py2-pip ruby
RUN apk --no-cache add dumb-init python3 py3-psycopg2 py3-ldap3 gettext libstdc++ py3-pip mariadb-connector-c-dev libxml2 libxslt
RUN ln -s python3 /usr/bin/python
# gcc git libffi-dev make musl-dev openldap-dev python2-dev postgresql-dev ruby-dev ruby-irb ruby-rdoc
RUN apk --no-cache add --virtual .build-dependencies alpine-sdk gcc g++ git python3-dev libffi-dev mariadb-dev openldap-dev libxml2-dev libxslt-dev linux-headers rust cargo && \
git clone --depth=1 https://github.com/fsinfuhh/Bitpoll.git /bitpoll && \
cd /bitpoll && \
pip3 install -r requirements-production.txt && \
pip3 install mysqlclient && \
apk --no-cache del .build-dependencies
COPY ./start.sh /usr/local/bin/
EXPOSE 8888
WORKDIR /bitpoll
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["sh", "/usr/local/bin/start.sh"]