Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hello World
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Examples
Java
Hello World
Commits
31e1156b
Commit
31e1156b
authored
1 year ago
by
Dmitriy Safronov
Browse files
Options
Downloads
Patches
Plain Diff
Dockerfile
Signed-off-by:
Dmitriy Safronov
<
zimniy@cyberbrain.pw
>
parent
cc578b41
No related branches found
No related tags found
1 merge request
!1
initial
Pipeline
#35136
passed
1 year ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+23
-0
23 additions, 0 deletions
Dockerfile
with
23 additions
and
0 deletions
Dockerfile
0 → 100644
+
23
−
0
View file @
31e1156b
FROM
eclipse-temurin:17-jdk
AS
builder
WORKDIR
/app
COPY
.mvn/ .mvn/
COPY
mvnw pom.xml ./
RUN
./mvnw dependency:go-offline
COPY
src/ src/
RUN
./mvnw clean package
FROM
eclipse-temurin:17-jre
AS
runtime
WORKDIR
/opt/app
RUN
addgroup
--system
--gid
1000 app
&&
\
adduser
--system
--uid
1000
--home
/app
--ingroup
app app
COPY
--from=builder --chown=app:app /app/target/*.jar /app/app.jar
USER
app:app
ENTRYPOINT
[ "java", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005", "-jar", "/app/app.jar" ]
EXPOSE
5005 8080
FROM
runtime
AS
release
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment