Skip to content

Instantly share code, notes, and snippets.

@naitsric
Created May 24, 2017 19:04
Show Gist options
  • Save naitsric/35e51de691a55d7b22c3239aa38ef7db to your computer and use it in GitHub Desktop.
Save naitsric/35e51de691a55d7b22c3239aa38ef7db to your computer and use it in GitHub Desktop.
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