1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
##########################################################
# #
# Build the image: #
# docker build -t gitsome . #
# #
# Run the container: #
# docker run -ti --rm -v $(pwd):/src/ \ #
# -v ${HOME}/.gitsomeconfig:/root/.gitsomeconfig \ #
# -v ${HOME}/.gitconfig:/root/.gitconfig \ #
# gitsome #
# #
##########################################################
FROM python:3.5
RUN pip install Pillow
COPY /requirements-dev.txt /gitsome/
WORKDIR /gitsome/
RUN pip install -r requirements-dev.txt
COPY / /gitsome/
RUN pip install -e .
RUN mkdir /src/
WORKDIR /src/
ENTRYPOINT ["gitsome"]
|