2
0
mirror of https://github.com/cmehay/pyentrypoint synced 2024-10-30 15:21:11 +00:00
pyentrypoint/docs/installation.rst
Christophe Mehay d74ca5b780 Doc
2016-04-29 02:33:43 +02:00

35 lines
983 B
ReStructuredText

Installation
============
All you need to do is to setup a ``yaml`` file called
``entrypoint-config.yml`` and to install **pyentrypoint** in your
``Dockerfile`` using pip.
.. code:: dockerfile
FROM debian
# Installing git for example
RUN apt-get update && apt-get install git python-pip -y
# Install pyentrypoint
RUN pip install pyentrypoint
# Copy config file in the current WORKDIR
COPY entrypoint-config.yml .
# Set ENTRYPOINT
ENTRYPOINT ['pyentrypoint']
# git will be the default command
CMD ['git']
.. code:: dockerfile
FROM alpine
# Installing git for example
RUN apk add --update py-pip git
# Install pyentrypoint
RUN pip install pyentrypoint
# Copy config file in the current WORKDIR
COPY entrypoint-config.yml .
# Set ENTRYPOINT
ENTRYPOINT ['pyentrypoint']
# git will be the default command
CMD ['git']