Skip to content

Instantly share code, notes, and snippets.

@soardex
Created January 6, 2017 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soardex/56341fbd26892d54c7d6fffdd64e9c4b to your computer and use it in GitHub Desktop.
Save soardex/56341fbd26892d54c7d6fffdd64e9c4b to your computer and use it in GitHub Desktop.
Sample Dockerfile
FROM python:2.7-alpine
MAINTAINER Edward Fitz Abucay <eabucay@vastorigins.net>
USER root
ENV JUROJIN_SRC=data
ENV JUROJIN_BOOT=jurojin-boot.sh
ENV JUROJIN=/data
RUN mkdir -p $JUROJIN
COPY $JUROJIN_SRC $JUROJIN
RUN pip install --upgrade pip \
&& pip install -r $JUROJIN/requirements.txt
EXPOSE 8000
WORKDIR $JUROJIN
ENTRYPOINT ["/data/jurojin-boot.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment