Skip to content

Commit

Permalink
-add docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ronen4822 committed Aug 5, 2024
1 parent 3e3afd5 commit db808db
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/
.env
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ build/

### VS Code ###
.vscode/

/.env
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM openjdk:24
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN ./mvnw package -DskipTests
ENTRYPOINT ["java","-jar","target/token_registration-1.0.0.jar"]
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# token_registration
# token_registration
to build run docker build -t leetcode-rs/recommendation .

4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.leetcoders</groupId>
<artifactId>token_registration</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.0.0</version>
<name>token_registration</name>
<description>token registration service</description>
<url/>
Expand All @@ -27,7 +27,7 @@
<url/>
</scm>
<properties>
<java.version>17</java.version>
<java.version>22</java.version>
</properties>
<dependencies>
<dependency>
Expand Down

0 comments on commit db808db

Please # to comment.