# 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. 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"]