ayushkhare12

Untitled

Aug 20th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.44 KB | None | 0 0
  1.  
  2. FROM frolvlad/alpine-glibc:alpine-3.10
  3.  
  4. USER root
  5.  
  6. COPY . /app
  7.  
  8. WORKDIR /app
  9.  
  10. RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
  11. # install RabbitMQ from testing branch
  12. RUN apk add rabbitmq-server@testing
  13.  
  14. # COPY ./wrapper.sh /usr/local/bin/wrapper.sh
  15. RUN chmod +x wrapper.sh
  16.  
  17.  
  18. #configure Erlang cookie
  19. RUN touch /usr/lib/rabbitmq/.erlang.cookie \
  20.  && echo your-favourite-erlang-cookie > /usr/lib/rabbitmq/.erlang.cookie \
  21.  && chown rabbitmq:rabbitmq /usr/lib/rabbitmq/.erlang.cookie \
  22.  && chmod 700 /usr/lib/rabbitmq/.erlang.cookie
  23.  
  24. RUN apk add --no-cache python && \
  25.      python -m ensurepip && \
  26.      rm -r /usr/lib/python*/ensurepip && \
  27.      pip install --upgrade pip setuptools && \
  28.      rm -r /root/.cache
  29.  
  30. RUN apk --no-cache add curl

  31. RUN apk --no-cache add bash
  32.  
  33. ENV CONDA_DIR="/opt/conda"
  34. ENV PATH="$CONDA_DIR/bin:$PATH"
  35. RUN CONDA_VERSION="4.5.1" && \
  36.      CONDA_MD5_CHECKSUM="866ae9dff53ad0874e1d1a60b1ad1ef8" && \
  37.      \
  38.      apk add --no-cache --virtual=.build-dependencies wget ca-certificates bash && \
  39.      \
  40.      mkdir -p "$CONDA_DIR" && \
  41.      wget "http://repo.continuum.io/miniconda/Miniconda2-${CONDA_VERSION}-Linux-x86_64.sh" -O miniconda.sh && \
  42.      bash miniconda.sh -f -b -p "$CONDA_DIR"
  43.  
  44. RUN conda install python=2.7 -c conda-canary && \
  45.      pip install mysql-connector-python==8.0.13 && \
  46.      pip install Flask-WTF && \
  47.      pip install networkx==1.10 && \
  48.      pip install --ignore-installed certifi && \
  49.      pip install --ignore-installed tornado && \
  50.      pip install --ignore-installed greenlet && \
  51.      pip install --ignore-installed llvmlite && \
  52.      pip install --ignore-installed mpmath && \
  53.      pip install --ignore-installed sympy && \
  54.      pip install --ignore-installed numexpr && \
  55.      pip install --ignore-installed terminado && \
  56.      pip install --ignore-installed traitlets && \
  57.      pip install --ignore-installed pyzmq && \
  58.      pip install --ignore-installed wrapt && \
  59.      pip install --ignore-installed XlsxWriter && \
  60.      pip install PuLP==1.6.8 && \
  61.      pip install QtPy==1.7.0 && \
  62.      pip install QtAwesome==0.5.7 && \
  63.      pip install qtconsole==4.4.3 && \
  64.      pip install scipy && \
  65.      pip install numba && \
  66.      pip install --force-reinstall numpy==1.16.4 && \
  67.      pip install --force-reinstall pandas==0.24.2 && \
  68.      pip install --force-reinstall bokeh==1.1.0 && \
  69.      conda install -c conda-forge matplotlib
  70.  
  71.  
  72. EXPOSE 5000
  73.  
  74. RUN pip install --upgrade pip flask_restful
  75. RUN pip uninstall -y matplotlib && \
  76.      python -m pip install --upgrade pip && \
  77.      pip install matplotlib
  78.  
  79. RUN apk add libx11
  80. RUN apk add libcurl
  81. RUN apk add curl-dev
  82. RUN apk add build-base
  83.  
  84. RUN apk add gcc
  85.  
  86.  
  87. RUN apk  --no-cache add gcc && \
  88.      apk --no-cache add libc-dev && \
  89.      apk add --update make
  90.  
  91.  
  92. RUN pip install PuLP
  93. RUN conda install -c conda-forge glpk
  94. RUN apk --no-cache add xvfb
  95.  
  96.  
  97. RUN  Xvfb :8 -screen 0 640x480x24 2>/tmp/Xvfb.log &
  98. RUN pip install sqlalchemy
  99.  
  100. ENV DISPLAY=:8
  101.  
  102. ENV DB_USERNAME="mzqNrJcomj"
  103. ENV DB_NAME="mzqNrJcomj"
  104. ENV DB_HOST="remotemysql.com"
  105. ENV DB_PASSWORD="4Xm1N7Yp7y"
  106.  
  107. RUN apk add --no-cache --virtual .build-deps gcc musl-dev
  108. RUN pip install cython
  109. RUN apk del .build-deps gcc musl-dev
  110. RUN apk add mpc1-dev
  111. RUN apk add gmp-dev
  112. RUN apk add mpfr-dev
  113.  
  114. RUN conda install pycurl
  115. RUN pip install celery[sqs]
  116.  
  117. ENTRYPOINT ["./wrapper.sh"]
  118.  
  119. # CMD ["kineticscolor2_JSON.py"]
Add Comment
Please, Sign In to add comment