Skip to content

Commit

Permalink
feat: Enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudiney Nascimento committed Feb 18, 2024
1 parent f97ae26 commit 70f2ca0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.16.2 as builder
FROM alpine:3.19.1 as builder

ARG MAVEN_VERSION=3.9.1
ARG MAVEN_VERSION=3.9.6

RUN apk add --update wget zip openjdk8 git

Expand All @@ -11,13 +11,14 @@ RUN wget -q -O /tmp/maven.zip https://dlcdn.apache.org/maven/maven-3/${MAVEN_VER
&& rm -Rf /tmp/apache-maven-${MAVEN_VERSION}/

RUN cd /tmp \
&& echo '# Fetching source code...' \
&& git clone https://github.com/claudineyns/icap-server.git \
&& echo 'Building application...' \
&& echo '# Building application...' \
&& /usr/local/maven/bin/mvn -f icap-server/pom.xml package \
&& mv icap-server/target/*-shaded.jar /tmp/runner.jar \
&& echo 'Build completed.'

FROM alpine:3.16.2
FROM alpine:3.19.1

ENV TZ=BRT+3

Expand Down

0 comments on commit 70f2ca0

Please sign in to comment.