Docker to create development environments

parent b195c1af
Pipeline #69466 passed with stage
web:
build: .
ports:
- "5000:5000"
volumes:
- .:/opt/quirell
links:
- redis
- neo4j
redis:
image: redis
neo4j:
image: tpires/neo4j
FROM debian
ENV LANG C.UTF-8
ENV CLOUDINARY_URL ""
ENV GRAPHENEDB_URL http://quirell:quirell@neo4j:7474/db/data/
ENV REDISTOGO_URL http://redis:6379/
ENV MAIL_USERNAME ""
ENV MAIL_PASSWORD ""
ENV MAIL_DEFAULT_SENDER ""
ENV SECRET_KEY "XXXXXXXXXXXXXXXXXXXXXXX0000000000000000000"
ENV PORT 5000
RUN mkdir -p /opt/quirell
ADD . /opt/quirell
WORKDIR /opt/quirell
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common build-essential
RUN apt-get install -y --no-install-recommends wget curl git
RUN apt-get update && apt-get install -y --no-install-recommends libssl1.0.0 ca-certificates
RUN add-apt-repository -y ppa:fkrull/deadsnakes
RUN add-apt-repository -y ppa:brightbox/ruby-ng
RUN apt-get update && apt-get install -y --no-install-recommends python3.4 python3.4-dev python-pip
RUN apt-get update && apt-get install -y --no-install-recommends ruby2.2 ruby2.2-dev
RUN gem install bundler
RUN bundle install
RUN pip install -r requirements.txt
CMD gunicorn quirell.webapp:app
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment