2016-05-24 18:11:57 +00:00
|
|
|
FROM jimschubert/8-jdk-alpine-mvn:1.0
|
2015-07-08 23:21:59 +00:00
|
|
|
|
2016-05-25 03:21:50 +00:00
|
|
|
ENV GEN_DIR /opt/swagger-codegen
|
|
|
|
|
|
|
|
RUN set -x && \
|
|
|
|
apk add --no-cache bash
|
|
|
|
|
2016-05-24 01:54:35 +00:00
|
|
|
RUN mkdir /opt
|
2015-07-08 23:21:59 +00:00
|
|
|
|
2016-05-25 03:21:50 +00:00
|
|
|
ADD . ${GEN_DIR}
|
|
|
|
|
|
|
|
VOLUME ${MAVEN_HOME}/.m2/repository
|
|
|
|
|
|
|
|
WORKDIR ${GEN_DIR}
|
2015-07-08 23:21:59 +00:00
|
|
|
|
2016-05-25 03:21:50 +00:00
|
|
|
RUN mvn -am -pl "modules/swagger-codegen-cli" package
|
2015-07-08 23:21:59 +00:00
|
|
|
|
2016-05-25 03:21:50 +00:00
|
|
|
COPY docker-entrypoint.sh /usr/local/bin/
|
2016-05-24 01:54:35 +00:00
|
|
|
|
2016-05-25 03:21:50 +00:00
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
2015-07-08 23:21:59 +00:00
|
|
|
|
2016-05-25 03:21:50 +00:00
|
|
|
CMD ["build"]
|