forked from jimschubert/swagger-codegen-cli.docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (17 loc) · 848 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM jimschubert/8-jdk-alpine-mvn:latest
MAINTAINER Jim Schubert <[email protected]>
RUN set -x \
&& mkdir -p /swagger-api/out \
&& apk add --no-cache bash \
&& apk add --no-cache --virtual .temporary wget \
&& wget -qO- https://api.github.com/repos/swagger-api/swagger-codegen/tarball/master | tar zxv -C /swagger-api \
&& mv /swagger-api/swagger-api-swagger-codegen* /swagger-api/swagger-codegen/ \
&& ln -s /swagger-api/swagger-codegen/modules/swagger-codegen/src/test/resources/2_0/ /swagger-api/yaml \
&& apk del .temporary
VOLUME /swagger-api/out
COPY docker-entrypoint.sh /
RUN cd /swagger-api/swagger-codegen && \
mvn -am -pl "modules/swagger-codegen-cli" package -Dmaven.test.skip=true -DskipTests && \
rm -rf ${MAVEN_HOME}/.m2/repository
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["help"]