Skip to content

Instantly share code, notes, and snippets.

@jmvrbanac
Created August 23, 2016 21:17
Show Gist options
  • Save jmvrbanac/12e0e28ceb9e126f2224efd2647fb196 to your computer and use it in GitHub Desktop.
Save jmvrbanac/12e0e28ceb9e126f2224efd2647fb196 to your computer and use it in GitHub Desktop.
Example Dockerfile
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