Run as container

This commit is contained in:
Ratul Buragohain 2023-02-16 22:57:06 +00:00
parent 5363152139
commit 6d59a2e44d
2 changed files with 14 additions and 0 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
target

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
# syntax=docker/dockerfile:1
FROM openjdk:21-buster
WORKDIR /app
COPY .mvn/ .mvn
COPY mvnw pom.xml ./
RUN ./mvnw dependency:resolve
COPY src ./src
CMD ["./mvnw", "spring-boot:run"]