FROM webdevops/liquibase:postgres

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