FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
openapi-generator/.hub.cli.dockerfile at test-python · runningcode/openapi-generator · GitHub
runningcode
/
openapi-generator
Public
forked from
OpenAPITools/openapi-generator
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
openapi-generator
/
.hub.cli.dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (22 loc) · 1.02 KB
Breadcrumbs
openapi-generator
/
.hub.cli.dockerfile
Copy path
File metadata and controls
32 lines (22 loc) · 1.02 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# The builder labeled image acts as a transient container which is meant to
#
# hold all non-artifact code.
#
#
#
# You can build _just_ this part with:
#
# docker --target builder -t container-name:builder -f .hub.cli.dockerfile .
FROM
maven:3.6.3-jdk-11-openj9 as builder
ENV
GEN_DIR /opt/openapi-generator
WORKDIR
${GEN_DIR}
COPY
. ${GEN_DIR}
#
Pre-compile openapi-generator-cli
RUN
mvn -am -pl
"modules/openapi-generator-cli"
package
#
# The final (release) image
#
# The resulting container here only needs the target jar
#
# and ca-certificates (to be able to query HTTPS hosted specs)
FROM
openjdk:11.0.8-jre-slim-buster
ENV
GEN_DIR /opt/openapi-generator
RUN
mkdir -p ${GEN_DIR}/modules/openapi-generator-cli/target
WORKDIR
${GEN_DIR}/modules/openapi-generator-cli/target
COPY
--from=builder ${GEN_DIR}/modules/openapi-generator-cli/target/openapi-generator-cli.jar ${GEN_DIR}/modules/openapi-generator-cli/target/openapi-generator-cli.jar
COPY
docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT
[
"docker-entrypoint.sh"
]
CMD
[
"help"
]
Back
|
FazBrowse Home
|
New Git URL