Add Dockerfile and docker-compose for vc-web hosting

This commit is contained in:
Achim Kramer 2024-11-08 15:44:17 +01:00
parent ad35dcf8c4
commit f520de5919
2 changed files with 28 additions and 0 deletions

21
Dockerfile Normal file
View File

@ -0,0 +1,21 @@
# @see https://github.com/1EdTech/digital-credentials-public-validator/tree/main
# Developer: Tested with Java 17 and Maven 3.8.6
FROM maven:3.8.6-openjdk-11-slim
# Define application dir
WORKDIR /app
# Copy sourcecode into application dir
COPY . /app
# Use maven to build the application
RUN mvn clean verify
# Expose network ports
EXPOSE 8080
# We want to start web service
WORKDIR /app/inspector-vc-web
# Start web application
ENTRYPOINT ["mvn", "spring-boot:run"]

7
docker-compose.yml Normal file
View File

@ -0,0 +1,7 @@
services:
validator:
build:
context: ./
dockerfile: Dockerfile
ports:
- "8080:8080"