FROM 475275892927.dkr.ecr.us-east-1.amazonaws.com/liquibase:3.10.3

ARG REVISION
ARG BUILDTIME
LABEL REVISION=${REVISION}
LABEL BUILDTIME=${BUILDTIME}

COPY ./migrations /liquibase/migrations
COPY init /init
COPY ./db.changelog-master.xml /liquibase/db.changelog-master.xml
COPY ./entrypoint.sh /entrypoint_wrapper.sh

ENTRYPOINT [ "bash", "/entrypoint_wrapper.sh" ]
