Browse Source

Add docker image creation

tags/v1.6.0
parent
commit
d39f8022ea
2 changed files with 23 additions and 0 deletions
  1. +15
    -0
      Dockerfile
  2. +8
    -0
      Dockerfile.arm32v7

+ 15
- 0
Dockerfile View File

@@ -0,0 +1,15 @@
FROM maven:3-jdk-11-slim AS build

COPY . /maven
WORKDIR /maven
RUN mvn package

FROM openjdk:8-jdk

ARG VERSION
COPY --from=build /maven/target/repositable-${VERSION}-jar-with-dependencies.jar /app/repositable.jar

WORKDIR /repository

CMD java -jar /app/repositable.jar /etc/repositable.conf.xml


+ 8
- 0
Dockerfile.arm32v7 View File

@@ -0,0 +1,8 @@
FROM arm32v7/openjdk:8-jdk-slim

ARG VERSION
COPY target/repositable-${VERSION}-jar-with-dependencies.jar /app/repositable.jar

WORKDIR /repository

CMD java -jar /app/repositable.jar /etc/repositable.conf.xml

Loading…
Cancel
Save