mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-02 17:14:51 +02:00
51052ebac1
* Add tests action * Change test execution command * Change action towards building a docker image * Use pyyaml from alpine package * Add test execution * Enable running without terminal in CI * Add creation of empty secret file * Fill service account file * Fix JSON * Fix quiting * Add more fields to fake secret * Wrap execution in try/except * Fix: local variable 'result' referenced before assignment
23 lines
795 B
Docker
23 lines
795 B
Docker
FROM alpine:3.16
|
|
|
|
WORKDIR /workdir
|
|
|
|
ADD requirements.txt /workdir/
|
|
|
|
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/main/" >> /etc/apk/repositories && \
|
|
echo "http://dl-4.alpinelinux.org/alpine/edge/community/" >> /etc/apk/repositories && \
|
|
apk --update --no-cache add ca-certificates chromium chromium-chromedriver py3-cryptography \
|
|
python3-dev py3-grpcio py3-wheel py3-pip py3-lxml py3-yaml \
|
|
build-base git icu-libs libxml2 libxml2-dev libxslt libxslt-dev libffi-dev openssl-dev cargo && \
|
|
pip install -r requirements.txt && \
|
|
apk del build-base
|
|
|
|
ADD cli.py /workdir/
|
|
ADD manager /workdir/manager
|
|
ADD config /workdir/config
|
|
ADD checks /workdir/checks
|
|
ADD rating /workdir/rating
|
|
ADD spider /workdir/spider
|
|
ADD export /workdir/export
|
|
ADD job.py /workdir/
|