openapi-generator/Dockerfile
weiyang 6b0b7a1587 [dockerfile] Replace 'maven:3.3-jdk-7' with 'maven:3-jdk-7-alpine'
Signed-off-by: weiyang <weiyang.ones@gmail.com>
2017-01-04 15:06:08 +08:00

23 lines
359 B
Docker

FROM jimschubert/8-jdk-alpine-mvn:1.0
ENV GEN_DIR /opt/swagger-codegen
RUN set -x && \
apk add --no-cache bash
RUN mkdir /opt
ADD . ${GEN_DIR}
VOLUME ${MAVEN_HOME}/.m2/repository
WORKDIR ${GEN_DIR}
RUN mvn -am -pl "modules/swagger-codegen-cli" package
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["build"]