Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
simple_flask_dockerizer/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (22 sloc)
758 Bytes
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
# Create a container from Ubuntu. | |
FROM ubuntu:14.04 | |
# Credits. | |
MAINTAINER Guido Barbaglia "guido.barbaglia@gmail.com" | |
# Update Ubuntu repositories. | |
RUN apt-get update | |
# Install Python. | |
RUN apt-get install -y -q build-essential python-gdal python-simplejson | |
RUN apt-get install -y python python-pip wget | |
RUN apt-get install -y python-dev | |
# Create a working directory. | |
RUN mkdir deployment | |
# Install VirtualEnv. | |
RUN pip install virtualenv | |
# Add requirements file. | |
ADD requirements.txt /deployment/requirements.txt | |
# Add the script that will start everything. | |
ADD start.py /deployment/start.py | |
# Run VirtualEnv. | |
RUN virtualenv /deployment/env/ | |
RUN /deployment/env/bin/pip install wheel | |
RUN /deployment/env/bin/pip install -r /deployment/requirements.txt |