mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-02 17:14:51 +02:00
Update alpine to v3.15.0 (#236)
* Set alpine version to 3.15.0 * Revert workaround for py3-cryptography
This commit is contained in:
parent
7a050948e3
commit
5cbbcc9861
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:3.14
|
FROM alpine:3.15.0
|
||||||
|
|
||||||
WORKDIR /workdir
|
WORKDIR /workdir
|
||||||
|
|
||||||
|
@ -6,16 +6,12 @@ ADD requirements.txt /workdir/
|
||||||
|
|
||||||
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
|
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 && \
|
echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
|
||||||
apk --update --no-cache add ca-certificates chromium chromium-chromedriver \
|
apk --update --no-cache add ca-certificates chromium chromium-chromedriver py3-cryptography \
|
||||||
python3-dev py3-grpcio py3-wheel py3-pip py3-lxml \
|
python3-dev py3-grpcio py3-wheel py3-pip py3-lxml \
|
||||||
build-base git libxml2 libxml2-dev libxslt libxslt-dev libffi-dev openssl-dev cargo && \
|
build-base git libxml2 libxml2-dev libxslt libxslt-dev libffi-dev openssl-dev cargo && \
|
||||||
pip install -r requirements.txt && \
|
pip install -r requirements.txt && \
|
||||||
apk del build-base
|
apk del build-base
|
||||||
|
|
||||||
# As alpine's py3-cryptography did not work as of alpine v3.14, we use this hack from
|
|
||||||
# https://github.com/pyca/cryptography/issues/3344#issuecomment-650845512
|
|
||||||
RUN LDFLAGS="-L/opt/openssl/lib -Wl,-rpath,/opt/openssl/lib" CFLAGS="-I/opt/openssl/include" pip3 install -U cryptography
|
|
||||||
|
|
||||||
ADD cli.py /workdir/
|
ADD cli.py /workdir/
|
||||||
ADD manager /workdir/manager
|
ADD manager /workdir/manager
|
||||||
ADD config /workdir/config
|
ADD config /workdir/config
|
||||||
|
|
Loading…
Reference in a new issue