FROM ubuntu:16.04 MAINTAINER Luís de Sousa RUN apt update RUN apt -y install python-pip python-dev nginx COPY ./requirements.txt /tmp/requirements.txt RUN pip install -r /tmp/requirements.txt # Expose port 80 EXPOSE 80 # Build it # docker build -t ldesousa/wsm.rest . # Run command # docker run -dit -v /home/duque004/git/wsm.rest:/var/www/wsm.rest --name wsm.rest -p 8081:80 ldesousa/wsm.rest # Attach to the container and run the startup script # docker attach wsm.rest # sh /var/www/wsm.rest/configs/startup.sh # Ctrl+P Ctrl+Q