@@ -4,30 +4,33 @@ ENV PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/"
44
55RUN apk --no-cache add python3 libffi py3-gunicorn cairo py3-setuptools
66
7- RUN apk --no-cache add python3-dev gcc libc-dev py3-pip libffi-dev py3-gunicorn cairo py3-mysqlclient
7+ RUN apk --no-cache add python3-dev gcc libc-dev py3-pip libffi-dev py3-gunicorn cairo py3-mysqlclient py3-setuptools
8+
9+ RUN pip3 install wheel urllib3
810
911# the touch fixes the missing __init__.py file from the broken zope.interface package ...
10- RUN pip3 install --no-binary=:all: --install-option="--prefix=/opt/graphite" --install-option="--install-lib=/opt/graphite/lib" https://github.com/graphite-project/whisper/archive/1.1.6.zip https://github.com/graphite-project/carbon/archive/1.1.6.zip https://github.com/graphite-project/graphite-web/archive/1.1.6.zip "whitenoise==3.*" && \
11- touch /opt/graphite/lib/zope/__init__.py
12+ RUN pip3 install --no-binary=:all: https://github.com/graphite-project/whisper/archive/1.1.6.zip https://github.com/graphite-project/carbon/archive/1.1.6.zip https://github.com/graphite-project/graphite-web/archive/1.1.6.zip "whitenoise==3.*"
1213
1314
14- FROM alpine:latest
15+ # # FROM alpine:latest
1516
16- ENV PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/"
17+ # #ENV PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/"
18+
19+ # #RUN apk --no-cache add python3 libffi py3-gunicorn cairo py3-setuptools py3-mysqlclient py3-pip
1720
18- RUN apk --no-cache add python3 libffi py3-gunicorn cairo py3-setuptools py3-mysqlclient
21+ # # RUN pip3 install urllib3
1922
2023RUN mkdir -p /var/lib/graphite/whisper /etc/uwsgi /opt/graphite/webapp/graphite
2124
2225COPY wsgi.py /opt/graphite/conf/
2326# COPY local_settings.py /opt/graphite/lib/graphite/local_settings.py
2427
2528# Link generated config
26- RUN mkdir -p /opt/graphite/lib /graphite
27- RUN ln -sf /etc/carbon/local_settings.py /opt/graphite/lib /graphite/local_settings.py
29+ RUN mkdir -p /opt/graphite/webapp /graphite/
30+ RUN ln -sf /etc/carbon/local_settings.py /opt/graphite/webapp /graphite/local_settings.py
2831
2932COPY run.sh /run.sh
30- COPY --from=build /opt/graphite /opt/graphite
33+ # # COPY --from=build /opt/graphite /opt/graphite
3134
3235VOLUME /var/lib/graphite/whisper
3336EXPOSE 8080
0 commit comments