add file
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
FROM ghcr.io/graalvm/jdk-community:21
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
ARG JAR_FILE
|
||||||
|
|
||||||
|
COPY ./target/${JAR_FILE} app.jar
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
ENTRYPOINT ["java", "-jar", "/app.jar"]
|
||||||
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -4,7 +4,7 @@ pipeline {
|
|||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
withMaven(maven: 'maven-latest') {
|
withMaven(maven: 'maven-latest') {
|
||||||
sh 'mvn -B -DskipTests clean package'
|
sh './mvnw -B -DskipTests clean package'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@@ -10,7 +10,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<groupId>id.my.luxic</groupId>
|
<groupId>id.my.luxic</groupId>
|
||||||
<artifactId>pastebin</artifactId>
|
<artifactId>pastebin</artifactId>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1</version>
|
||||||
<name>pastebin</name>
|
<name>pastebin</name>
|
||||||
<description>Pastebin made with Java Spring Boot</description>
|
<description>Pastebin made with Java Spring Boot</description>
|
||||||
<url/>
|
<url/>
|
||||||
|
|||||||
Reference in New Issue
Block a user