FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
example.Dockerfile 621 B
Newer Older
Mike Knee's avatar
Mike Knee committed
# syntax = devthefuture/dockerfile-x

# We use the dockerfile-x syntax to demonstrate what would be required from an
# actual application that was using the base Dockerfile.
Mike Knee's avatar
Mike Knee committed

FROM ./Dockerfile as base

COPY example ./example
WORKDIR /usr/src/app/example

# Example testing image
FROM base as tox

RUN pip install tox
ENTRYPOINT ["tox"]
CMD []

# Example full image
FROM base as full

# If our function had requirements we could install them now:
# RUN pip install -r requirements.txt
# or, since poetry is available:
# RUN poetry install --no-root

# Set the CMD to the default function to call
CMD ["example_raw_event"]