mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
436731184d
This update allows the root Dockerfile to be used as a development container and updates run-in-docker.sh to use the same entrypoint script while maintaining backward compatibility for anyone who has scripted mappings to /gen and /root/.m2/repository.
23 lines
359 B
Docker
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"]
|