Skip to content

Commit b5d735a

Browse files
committed
chore: add docker
1 parent 71e0769 commit b5d735a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,10 @@ jobs:
3434
run: mvn clean install
3535

3636
- name: Run tests
37-
run: mvn test
37+
run: mvn test
38+
39+
- name: Package
40+
run: mvn package
41+
42+
- name: Docker
43+
run: docker build -t intellicode/kotlin-hello .

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM amazoncorretto:23-alpine
2+
RUN addgroup -S spring && adduser -S spring -G spring
3+
USER spring:spring
4+
ARG JAR_FILE=target/*.jar
5+
COPY ${JAR_FILE} app.jar
6+
ENTRYPOINT ["java","-jar","/app.jar"]

0 commit comments

Comments
 (0)