feat: add Dockerfile for backend
This commit is contained in:
parent
1a540e6999
commit
9ab02dda7f
14
backend/Dockerfile
Normal file
14
backend/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM maven:3.9.11-eclipse-temurin-21
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY pom.xml .
|
||||
COPY application.yml .
|
||||
|
||||
RUN mvn dependency:go-offline -B
|
||||
|
||||
COPY src ./src
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["mvn", "spring-boot:run"]
|
||||
Loading…
Reference in New Issue
Block a user