mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-02 00:54:52 +02:00
Specify alpine 3.16.2, reorganize into multiple steps
This commit is contained in:
parent
2425de296e
commit
a2da4ca0a8
20
Dockerfile
20
Dockerfile
|
@ -1,16 +1,20 @@
|
|||
FROM alpine:3.16
|
||||
|
||||
WORKDIR /workdir
|
||||
|
||||
ADD requirements.txt /workdir/
|
||||
FROM alpine:3.16.2
|
||||
|
||||
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
|
||||
build-base git icu-libs libssl1.1 libssl3 libxml2 libxml2-dev libxslt libxslt-dev libffi-dev openssl-dev cargo
|
||||
|
||||
WORKDIR /workdir
|
||||
|
||||
# Execute time consuming compilations in a separate step
|
||||
RUN python3 -m pip install libcst==0.4.7 sgmllib3k==1.0.0
|
||||
|
||||
ADD requirements.txt /workdir/
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
RUN python3 -m pip freeze
|
||||
|
||||
ADD cli.py /workdir/
|
||||
ADD manager /workdir/manager
|
||||
|
|
|
@ -10,12 +10,12 @@ docker==4.4.1
|
|||
feedparser==6.0.8
|
||||
gitdb==4.0.9
|
||||
GitPython==3.1.24
|
||||
google-api-core==2.2.2
|
||||
google-auth==2.3.3
|
||||
google-cloud-core==2.2.1
|
||||
google-cloud-datastore==2.4.0
|
||||
google-cloud-storage==1.43.0
|
||||
googleapis-common-protos==1.53.0
|
||||
google-api-core==2.10.2
|
||||
google-auth==2.13.0
|
||||
google-cloud-core==2.3.2
|
||||
google-cloud-datastore==2.9.0
|
||||
google-cloud-storage==2.5.0
|
||||
googleapis-common-protos==1.56.4
|
||||
html-similarity==0.3.3
|
||||
httpretty==1.1.4
|
||||
idna==2.10
|
||||
|
@ -25,7 +25,7 @@ protobuf==4.21.8
|
|||
pyasn1==0.4.8
|
||||
pyasn1-modules==0.2.8
|
||||
pycparser==2.21
|
||||
pyOpenSSL==22.1.0
|
||||
pyOpenSSL==22.0.0
|
||||
pytz==2021.3
|
||||
redis==4.1.0
|
||||
requests==2.26.0
|
||||
|
|
Loading…
Reference in a new issue