Created
August 23, 2016 21:17
-
-
Save jmvrbanac/12e0e28ceb9e126f2224efd2647fb196 to your computer and use it in GitHub Desktop.
Example Dockerfile
This file contains hidden or 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.4 | |
MAINTAINER Random Author <[email protected]> | |
# Update Python Container | |
RUN apt-get update && apt-get upgrade -y | |
RUN apt-get install -y vim | |
# Copy all project files and set as the working dir | |
COPY . /opt/app_name | |
WORKDIR /opt/app_name | |
# Pre-install our recommended requirements | |
RUN pip install -r requirements.txt | |
# Install Service | |
RUN pip install . | |
# Set default config | |
RUN ln -s /opt/app_name/etc/app_name /etc/app_name | |
EXPOSE 8080 | |
ENTRYPOINT ["app_entry_point"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment