Created
May 24, 2017 19:04
-
-
Save naitsric/35e51de691a55d7b22c3239aa38ef7db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.5 | |
MAINTAINER CristianDuque <anticris9303@gmail.com> | |
ENV PYTHONUNBUFFERED 1 | |
RUN apt-get update | |
RUN apt-get install -y libgeos-dev && apt-get install -y supervisor && apt-get install -y nginx && apt-get install -y redis-server | |
RUN echo "daemon off;" >> /etc/nginx/nginx.conf | |
RUN wget http://download.redis.io/releases/redis-stable.tar.gz | |
RUN mkdir /code | |
WORKDIR /code | |
ADD nginx-app.conf /etc/nginx/sites-enabled/default | |
ADD supervisor-app.conf /etc/supervisor/conf.d/ | |
ADD requirements.txt /code/ | |
RUN pip install --upgrade pip | |
RUN pip install -r requirements.txt | |
ADD . /code/ | |
EXPOSE 80 | |
CMD ["supervisord", "-n"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment