Skip to content
Snippets Groups Projects

Simple Docker file for a python webserver app.

  • Clone with SSH
  • Clone with HTTP
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Richard Torenvliet
    Dockerfile 295 B
    FROM python:2.7
    ENV PYTHONUNBUFFERED 1
    
    RUN apt-get update -y
    RUN apt-get install -y nginx \
        supervisor \
        gunicorn \
        sqlite3
    
    RUN mkdir /app
    RUN mkdir /files
    
    ADD requirements.txt /app/
    RUN pip install -r /app/requirements.txt
    
    ADD . /app/
    WORKDIR /app
    
    CMD ["/app/etc/bootstrap.sh"]
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment