Skip to content

Commit

Permalink
Changing Dockerfile image
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrum001 committed Jun 2, 2022
1 parent 57722aa commit c2bbfa9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM maven:3.6.3-jdk-8
FROM openjdk:8u212-jdk-alpine3.9

ADD .git/ /.git/
ADD api-policy-component-service/ /api-policy-component-service/
Expand All @@ -11,8 +11,9 @@ ARG GIT_TAG
ENV MAVEN_HOME=/root/.m2
ENV TAG=$GIT_TAG

RUN mkdir $MAVEN_HOME \
RUN apk --update add git maven curl \
# Set Nexus credentials in settings.xml file
&& mkdir $MAVEN_HOME \
&& curl -v -o $MAVEN_HOME/settings.xml "https://raw.githubusercontent.com/Financial-Times/nexus-settings/master/public-settings.xml" \
# Generate docker tag
&& cd api-policy-component-service \
Expand All @@ -29,6 +30,8 @@ RUN mkdir $MAVEN_HOME \
# Move resources to root directory in docker container
&& mv config-local.yml /config.yml \
# Clean up unnecessary dependencies and binaries
&& apk del git maven curl \
&& rm -rf /var/cache/apk/* \
&& rm -rf $MAVEN_HOME/*

FROM openjdk:8u332-jre-slim
Expand Down

0 comments on commit c2bbfa9

Please sign in to comment.