FROM webdevops/liquibase:postgres

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

COPY ./migrations /liquibase/migrations
COPY ./vacum /liquibase/vacum
COPY ./triggers /liquibase/triggers
COPY ./indexes /liquibase/indexes
COPY ./seeds /liquibase/seeds
COPY ./views /liquibase/views
COPY ./stored_procedures /liquibase/stored_procedures
COPY ./init /init
COPY ./db.changelog-master.xml /liquibase/db.changelog-master.xml
COPY ./entrypoint.sh /entrypoint_wrapper.sh

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