openapi-generator/modules/swagger-generator/Dockerfile

13 lines
336 B
Docker
Raw Normal View History

2016-01-06 00:12:40 +00:00
FROM java:8-jdk
2016-01-05 04:21:15 +00:00
WORKDIR /generator
COPY target/lib/jetty-runner* /generator/jetty-runner.jar
COPY target/*.war /generator/swagger-generator.war
ENV GENERATOR_HOST=https://generator.swaggerhub.com/api/swagger.json
RUN apt-get update
EXPOSE 8080
CMD ["java", "-jar", "/generator/jetty-runner.jar", "/generator/swagger-generator.war"]