started Dockerfile for build

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-01-08 14:16:32 +01:00
parent 4ee0706da0
commit 005f5e1f17

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM docker.srsoftware.de/basic_tools:alpine AS build
RUN apk add maven
COPY . /Web4Rail
RUN mvn clean install \
&& cp target/web4rail*dependencies.jar /w4r.jar \
&& chmod +x /w4r.jar
FROM docker.srsoftware.de/basic_tools:alpine:
RUN apk add opendjk21-jre-headless