FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
api-blog/Dockerfile at main · iuryJavaProgramador/api-blog · GitHub
iuryJavaProgramador
api-blog
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
api-blog
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (16 loc) · 607 Bytes
Breadcrumbs
api-blog
/
Dockerfile
Copy path
File metadata and controls
26 lines (16 loc) · 607 Bytes
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
FROM
openjdk:17.0.1-jdk-oracle as build
WORKDIR
/workspace/app
COPY
mvnw .
COPY
.mvn .mvn
COPY
pom.xml .
COPY
src src
RUN
chmod -R 777 ./mvnw
RUN
./mvnw install -DskipTests
RUN
mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)
FROM
openjdk:17.0.1-jdk-oracle
VOLUME
/tmp
ARG
DEPENDENCY=/workspace/app/target/dependency
COPY
--from=build ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY
--from=build ${DEPENDENCY}/META-INF /app/META-INF
COPY
--from=build ${DEPENDENCY}/BOOT-INF/classes /app
ENTRYPOINT
[
"java"
,
"-cp"
,
"app:app/lib/*"
,
"com.iurytraining.blogproject.BlogprojectApplication"
]
Back
|
FazBrowse Home
|
New Git URL