Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ec-simple
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
0Tyler
ec-simple
Commits
7f6bbb44
Commit
7f6bbb44
authored
Jul 18, 2022
by
0Tyler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: docker build
parent
dbcfd85f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
Dockerfile
Dockerfile
+12
-4
README.md
README.md
+6
-0
No files found.
Dockerfile
View file @
7f6bbb44
FROM
gradle:7.5.0-jdk11 AS build
COPY
--chown=gradle:gradle . /home/gradle/src
WORKDIR
/home/gradle/src
RUN
gradle build
FROM
adoptopenjdk/openjdk11-openj9:latest
WORKDIR
/opt/app
ARG
JAR_FILE=target/*.jar
COPY
${JAR_FILE} app.jar
ENTRYPOINT
["java","-jar","/app.jar"]
\ No newline at end of file
EXPOSE
7168
RUN
mkdir
/app
COPY
--from=build /home/gradle/src/src/main/resources/*.yml /app/config/
COPY
--from=build /home/gradle/src/build/libs/*.jar /app/ec-simple.jar
ENTRYPOINT
["java","-jar","/app/ec-simple.jar"]
\ No newline at end of file
README.md
0 → 100644
View file @
7f6bbb44
# EC Simple
## Docker Command:
```
sudo docker build -t ec-simple .
sudo docker run -p 7168:7168 ec-simple
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment