Skip to content
This repository was archived by the owner on Aug 8, 2018. It is now read-only.

Commit ab74b18

Browse files
author
Ryan Walker
committed
Fix Dockerfile
* Change build artifact directory from build/maven to target/ `docker builds` fail at 'mv build/maven/aws-apigateway-*-jar-with-dependencies.jar /aws-apigateway-importer.jar' because maven is building into target/ instead. * Do not attempt to remove /root/.m2 The Maven Docker image exports /root/.m2 so `rm -rf ~/.m2` fails. See https://github.com/carlossg/docker-maven/blob/8ab542b907e69c5269942bcc0915d8dffcc7e9fa/jdk-8/Dockerfile#L11 for reference.
1 parent 74e3f14 commit ab74b18

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ COPY tst /app/tst/
1010
WORKDIR /app
1111

1212
RUN mvn assembly:assembly \
13-
&& mv build/maven/aws-apigateway-*-jar-with-dependencies.jar /aws-apigateway-importer.jar \
14-
&& mvn clean \
15-
&& rm -rf /app ~/.m2
13+
&& mv target/aws-apigateway-*-jar-with-dependencies.jar /aws-apigateway-importer.jar \
14+
&& mvn clean
1615

1716
VOLUME ["/root/.aws"]
1817
VOLUME ["/data"]

0 commit comments

Comments
 (0)