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 f0b415f commit 3cee0d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,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-base bash gettext

ARG FLYWAY_VERSION=10.10.0

RUN wget -q 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 All @@ -45,4 +45,3 @@ COPY --link config.toml run.sh ./
COPY --from=builder --link /app/cmd/vulcan-scan-engine/vulcan-scan-engine .

CMD [ "./run.sh" ]

0 comments on commit 3cee0d3

Please sign in to comment.