File tree 3 files changed +6
-16
lines changed
3 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 3
3
# #
4
4
# # You can build _just_ this part with:
5
5
# # docker --target builder -t container-name:builder -f .hub.cli.dockerfile .
6
- FROM jimschubert/8-jdk-alpine-mvn:1.0 as builder
7
-
8
- RUN set -x && \
9
- apk add --no-cache bash
6
+ FROM maven:3.6.3-jdk-11-openj9 as builder
10
7
11
8
ENV GEN_DIR /opt/openapi-generator
12
9
WORKDIR ${GEN_DIR}
@@ -18,11 +15,10 @@ RUN mvn -am -pl "modules/openapi-generator-cli" package
18
15
# # The final (release) image
19
16
# # The resulting container here only needs the target jar
20
17
# # and ca-certificates (to be able to query HTTPS hosted specs)
21
- FROM openjdk:8-jre-alpine
18
+ FROM openjdk:11.0. 8-jre-slim-buster
22
19
23
20
ENV GEN_DIR /opt/openapi-generator
24
21
25
- RUN apk --no-cache add ca-certificates bash
26
22
RUN mkdir -p ${GEN_DIR}/modules/openapi-generator-cli/target
27
23
28
24
WORKDIR ${GEN_DIR}/modules/openapi-generator-cli/target
Original file line number Diff line number Diff line change 3
3
# #
4
4
# # You can build _just_ this part with:
5
5
# # docker --target builder -t container-name:builder -f .hub.online.dockerfile .
6
- FROM jimschubert/8-jdk-alpine-mvn:1.0 as builder
7
-
8
- RUN set -x && \
9
- apk add --no-cache bash
6
+ FROM maven:3.6.3-jdk-11-openj9 as builder
10
7
11
8
ENV GEN_DIR /opt/openapi-generator
12
9
WORKDIR ${GEN_DIR}
@@ -17,7 +14,7 @@ RUN mvn -am -pl "modules/openapi-generator-online" package
17
14
18
15
# # The final (release) image
19
16
# # The resulting container here only needs the target jar
20
- FROM openjdk:8-jre-alpine
17
+ FROM openjdk:11.0. 8-jre-slim-buster
21
18
22
19
ENV GEN_DIR /opt/openapi-generator
23
20
ENV TARGET_DIR /generator
Original file line number Diff line number Diff line change 1
- FROM jimschubert/8-jdk-alpine-mvn:1.0
2
-
3
- RUN set -x && \
4
- apk add --no-cache bash
1
+ FROM maven:3.6.3-jdk-11-openj9
5
2
6
3
ENV GEN_DIR /opt/openapi-generator
7
4
WORKDIR ${GEN_DIR}
@@ -29,6 +26,6 @@ RUN mvn -am -pl "modules/openapi-generator-cli" package
29
26
COPY docker-entrypoint.sh /usr/local/bin/
30
27
RUN ln -s /usr/local/bin/docker-entrypoint.sh /usr/local/bin/openapi-generator
31
28
32
- ENTRYPOINT ["docker-entrypoint.sh" ]
29
+ ENTRYPOINT ["/usr/local/bin/ docker-entrypoint.sh" ]
33
30
34
31
CMD ["help" ]
You can’t perform that action at this time.
0 commit comments