File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 66RUN apt-get update \
77 && apt-get install -yq --no-install-recommends \
88 libmariadb-java \
9- libpostgresql-jdbc-java
9+ libpostgresql-jdbc-java \
10+ && apt-get autoclean \
11+ && apt-get clean \
12+ && rm -rf /var/*/apt/*
1013# /usr/share/java/mariadb-java-client.jar
1114# /usr/share/java/postgresql.jar
1215
@@ -19,16 +22,14 @@ WORKDIR /liquibase
1922USER liquibase
2023
2124# Latest Liquibase Release Version
22- ENV LIQUIBASE_VERSION 3.8.6
25+ ARG LIQUIBASE_VERSION= 3.8.6
2326
2427# Download, install, clean up
2528RUN set -x \
26- && curl -L https://github.com/liquibase/liquibase/releases/download/v${LIQUIBASE_VERSION}/liquibase-${LIQUIBASE_VERSION}.tar.gz -o liquibase-core-${LIQUIBASE_VERSION}-bin.tar.gz \
27- && tar -xzf liquibase-core-${LIQUIBASE_VERSION}-bin.tar.gz \
28- && rm liquibase-core-${LIQUIBASE_VERSION}-bin.tar.gz
29+ && curl -L https://github.com/liquibase/liquibase/releases/download/v${LIQUIBASE_VERSION}/liquibase-${LIQUIBASE_VERSION}.tar.gz | tar -xzf -
2930
3031# Set liquibase to executable
31- RUN chmod 777 /liquibase
32+ RUN chmod 755 /liquibase
3233
3334ENTRYPOINT ["/liquibase/liquibase" ]
3435CMD ["--help" ]
You can’t perform that action at this time.
0 commit comments