11FROM maven:3.6.3-jdk-11-openj9
22
3- ENV GEN_DIR /opt/openapi-generator
3+ ENV GEN_DIR /opt/openapi-json-schema- generator
44WORKDIR ${GEN_DIR}
55VOLUME ${MAVEN_HOME}/.m2/repository
66
@@ -11,20 +11,20 @@ COPY ./LICENSE ${GEN_DIR}
1111COPY ./google_checkstyle.xml ${GEN_DIR}
1212
1313# Modules are copied individually here to allow for caching of docker layers between major.minor versions
14- COPY ./modules/openapi-generator-gradle-plugin ${GEN_DIR}/modules/openapi-generator-gradle-plugin
15- COPY ./modules/openapi-generator-maven-plugin ${GEN_DIR}/modules/openapi-generator-maven-plugin
16- COPY ./modules/openapi-generator-online ${GEN_DIR}/modules/openapi-generator-online
17- COPY ./modules/openapi-generator-cli ${GEN_DIR}/modules/openapi-generator-cli
18- COPY ./modules/openapi-generator-core ${GEN_DIR}/modules/openapi-generator-core
19- COPY ./modules/openapi-generator ${GEN_DIR}/modules/openapi-generator
14+ COPY ./modules/openapi-json-schema- generator-gradle-plugin ${GEN_DIR}/modules/openapi-json-schema -generator-gradle-plugin
15+ COPY ./modules/openapi-json-schema- generator-maven-plugin ${GEN_DIR}/modules/openapi-json-schema -generator-maven-plugin
16+ COPY ./modules/openapi-json-schema- generator-online ${GEN_DIR}/modules/openapi-json-schema -generator-online
17+ COPY ./modules/openapi-json-schema- generator-cli ${GEN_DIR}/modules/openapi-json-schema -generator-cli
18+ COPY ./modules/openapi-json-schema- generator-core ${GEN_DIR}/modules/openapi-json-schema -generator-core
19+ COPY ./modules/openapi-json-schema- generator ${GEN_DIR}/modules/openapi-json-schema -generator
2020COPY ./pom.xml ${GEN_DIR}
2121
2222# Pre-compile openapi-generator-cli
23- RUN mvn -am -pl "modules/openapi-generator-cli" package
23+ RUN mvn -am -pl "modules/openapi-json-schema- generator-cli" package
2424
2525# This exists at the end of the file to benefit from cached layers when modifying docker-entrypoint.sh.
2626COPY docker-entrypoint.sh /usr/local/bin/
27- RUN ln -s /usr/local/bin/docker-entrypoint.sh /usr/local/bin/openapi-generator
27+ RUN ln -s /usr/local/bin/docker-entrypoint.sh /usr/local/bin/openapi-json-schema- generator
2828
2929ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh" ]
3030
0 commit comments