Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM frolvlad/alpine-glibc:alpine-3.10
- USER root
- COPY . /app
- WORKDIR /app
- RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
- # install RabbitMQ from testing branch
- RUN apk add rabbitmq-server@testing
- # COPY ./wrapper.sh /usr/local/bin/wrapper.sh
- RUN chmod +x wrapper.sh
- #configure Erlang cookie
- RUN touch /usr/lib/rabbitmq/.erlang.cookie \
- && echo your-favourite-erlang-cookie > /usr/lib/rabbitmq/.erlang.cookie \
- && chown rabbitmq:rabbitmq /usr/lib/rabbitmq/.erlang.cookie \
- && chmod 700 /usr/lib/rabbitmq/.erlang.cookie
- RUN apk add --no-cache python && \
- python -m ensurepip && \
- rm -r /usr/lib/python*/ensurepip && \
- pip install --upgrade pip setuptools && \
- rm -r /root/.cache
- RUN apk --no-cache add curl
- RUN apk --no-cache add bash
- ENV CONDA_DIR="/opt/conda"
- ENV PATH="$CONDA_DIR/bin:$PATH"
- RUN CONDA_VERSION="4.5.1" && \
- CONDA_MD5_CHECKSUM="866ae9dff53ad0874e1d1a60b1ad1ef8" && \
- \
- apk add --no-cache --virtual=.build-dependencies wget ca-certificates bash && \
- \
- mkdir -p "$CONDA_DIR" && \
- wget "http://repo.continuum.io/miniconda/Miniconda2-${CONDA_VERSION}-Linux-x86_64.sh" -O miniconda.sh && \
- bash miniconda.sh -f -b -p "$CONDA_DIR"
- RUN conda install python=2.7 -c conda-canary && \
- pip install mysql-connector-python==8.0.13 && \
- pip install Flask-WTF && \
- pip install networkx==1.10 && \
- pip install --ignore-installed certifi && \
- pip install --ignore-installed tornado && \
- pip install --ignore-installed greenlet && \
- pip install --ignore-installed llvmlite && \
- pip install --ignore-installed mpmath && \
- pip install --ignore-installed sympy && \
- pip install --ignore-installed numexpr && \
- pip install --ignore-installed terminado && \
- pip install --ignore-installed traitlets && \
- pip install --ignore-installed pyzmq && \
- pip install --ignore-installed wrapt && \
- pip install --ignore-installed XlsxWriter && \
- pip install PuLP==1.6.8 && \
- pip install QtPy==1.7.0 && \
- pip install QtAwesome==0.5.7 && \
- pip install qtconsole==4.4.3 && \
- pip install scipy && \
- pip install numba && \
- pip install --force-reinstall numpy==1.16.4 && \
- pip install --force-reinstall pandas==0.24.2 && \
- pip install --force-reinstall bokeh==1.1.0 && \
- conda install -c conda-forge matplotlib
- EXPOSE 5000
- RUN pip install --upgrade pip flask_restful
- RUN pip uninstall -y matplotlib && \
- python -m pip install --upgrade pip && \
- pip install matplotlib
- RUN apk add libx11
- RUN apk add libcurl
- RUN apk add curl-dev
- RUN apk add build-base
- RUN apk add gcc
- RUN apk --no-cache add gcc && \
- apk --no-cache add libc-dev && \
- apk add --update make
- RUN pip install PuLP
- RUN conda install -c conda-forge glpk
- RUN apk --no-cache add xvfb
- RUN Xvfb :8 -screen 0 640x480x24 2>/tmp/Xvfb.log &
- RUN pip install sqlalchemy
- ENV DISPLAY=:8
- ENV DB_USERNAME="mzqNrJcomj"
- ENV DB_NAME="mzqNrJcomj"
- ENV DB_HOST="remotemysql.com"
- ENV DB_PASSWORD="4Xm1N7Yp7y"
- RUN apk add --no-cache --virtual .build-deps gcc musl-dev
- RUN pip install cython
- RUN apk del .build-deps gcc musl-dev
- RUN apk add mpc1-dev
- RUN apk add gmp-dev
- RUN apk add mpfr-dev
- RUN conda install pycurl
- RUN pip install celery[sqs]
- ENTRYPOINT ["./wrapper.sh"]
- # CMD ["kineticscolor2_JSON.py"]
Add Comment
Please, Sign In to add comment