|
1 | 1 | FROM alpine:latest AS build |
2 | 2 |
|
3 | | -#ENV PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/" |
| 3 | +ENV PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/" |
4 | 4 |
|
5 | 5 | RUN apk --no-cache add python3 libffi py3-gunicorn cairo py3-setuptools |
6 | 6 |
|
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 | 8 |
|
9 | 9 | RUN pip3 install wheel urllib3 |
10 | 10 |
|
11 | 11 | # the touch fixes the missing __init__.py file from the broken zope.interface package ... |
12 | | -RUN pip3 install --no-binary=:all: --prefix=/opt/graphite 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.*" |
| 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.*" |
13 | 13 |
|
14 | 14 |
|
15 | | -FROM alpine:latest |
| 15 | +##FROM alpine:latest |
16 | 16 |
|
17 | | -ENV PYTHONPATH="/opt/graphite/lib/:/opt/graphite/lib/python3.8/site-packages/:/opt/graphite/webapp/" |
| 17 | +##ENV PYTHONPATH="/opt/graphite/lib/:/opt/graphite/webapp/" |
18 | 18 |
|
19 | | -RUN apk --no-cache add python3 libffi py3-gunicorn cairo py3-setuptools py3-mysqlclient py3-pip |
| 19 | +##RUN apk --no-cache add python3 libffi py3-gunicorn cairo py3-setuptools py3-mysqlclient py3-pip |
20 | 20 |
|
21 | | -RUN pip3 install urllib3 |
| 21 | +##RUN pip3 install urllib3 |
22 | 22 |
|
23 | 23 | RUN mkdir -p /var/lib/graphite/whisper /etc/uwsgi /opt/graphite/webapp/graphite |
24 | 24 |
|
25 | 25 | COPY wsgi.py /opt/graphite/conf/ |
26 | 26 | #COPY local_settings.py /opt/graphite/lib/graphite/local_settings.py |
27 | 27 |
|
28 | 28 | # Link generated config |
29 | | -RUN mkdir -p /opt/graphite/lib/graphite |
30 | | -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 |
31 | 31 |
|
32 | 32 | COPY run.sh /run.sh |
33 | | -COPY --from=build /opt/graphite /opt/graphite |
| 33 | +##COPY --from=build /opt/graphite /opt/graphite |
34 | 34 |
|
35 | 35 | VOLUME /var/lib/graphite/whisper |
36 | 36 | EXPOSE 8080 |
|
0 commit comments