Add Dockerfile and docker-compose for vc-web hosting
This commit is contained in:
parent
ad35dcf8c4
commit
f520de5919
21
Dockerfile
Normal file
21
Dockerfile
Normal 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
7
docker-compose.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
services:
|
||||||
|
validator:
|
||||||
|
build:
|
||||||
|
context: ./
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
Loading…
Reference in New Issue
Block a user