-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
17 lines (13 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM maven:3.3-jdk-8-alpine
LABEL name="philippgille/alexa-java-builder:alpine"
LABEL description="Docker image that contains all Alexa Skills Kit Java SDK and sample dependencies"
LABEL usage="docker run --rm -v /path/to/pom-dir:/usr/src/mymaven philippgille/alexa-java-builder:alpine"
LABEL maintainer "Philipp Gillé - https://hub.docker.com/u/philippgille/"
RUN curl -L https://github.com/amzn/alexa-skills-kit-java/archive/master.zip --output alexa-skills-kit-java.zip \
&& unzip alexa-skills-kit-java.zip \
&& mvn -B -f alexa-skills-kit-java-master/pom.xml -s /usr/share/maven/ref/settings-docker.xml assembly:assembly -DdescriptorId=jar-with-dependencies \
&& mvn -B -f alexa-skills-kit-java-master/samples/pom.xml -s /usr/share/maven/ref/settings-docker.xml assembly:assembly -DdescriptorId=jar-with-dependencies \
&& rm alexa-skills-kit-java.zip \
&& rm -r alexa-skills-kit-java-master
WORKDIR /usr/src/mymaven
CMD ["mvn", "-B", "-s", "/usr/share/maven/ref/settings-docker.xml", "assembly:assembly", "-DdescriptorId=jar-with-dependencies"]