openapi-generator/Dockerfile

23 lines
359 B
Docker
Raw Normal View History

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