Skip to content

Commit

Permalink
Upgrade openjdk for flyway
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusfcr committed Mar 19, 2024
1 parent 0f43090 commit d68c769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ FROM alpine:3.19

WORKDIR /flyway

RUN apk add --no-cache --update openjdk8-jre-base bash gettext
RUN apk add --no-cache --update openjdk17-jre bash gettext

ARG FLYWAY_VERSION=10.10.0

RUN wget https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/${FLYWAY_VERSION}/flyway-commandline-${FLYWAY_VERSION}.tar.gz \
&& tar -xzf flyway-commandline-${FLYWAY_VERSION}.tar.gz --strip 1 \
&& rm flyway-commandline-${FLYWAY_VERSION}.tar.gz \
&& find ./drivers/ -type f -not -name 'postgres*' -delete \
&& find ./drivers/ -type f | grep -Ev '(postgres|jackson)' | xargs rm \
&& chown -R root:root . \
&& ln -s /flyway/flyway /bin/flyway

Expand Down

0 comments on commit d68c769

Please sign in to comment.