This commit is contained in:
Akiyoshi Yonekura 2021-06-16 23:04:55 +09:00
parent 91194f5140
commit b0e56fb58f
3 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,8 @@
FROM quay.io/yakiyoshi/spring-petclinic:maven-3.5.4-java-1.8
RUN git clone https://github.com/yakiyoshi/spring-petclinic.git
WORKDIR /opt/maven/spring-petclinic
RUN ./mvnw package
FROM registry.redhat.io/ubi8/ubi
ARG JAR_FILE=target/*.jar
RUN yum install -y java-11-openjdk && yum clean all -y

View file

@ -0,0 +1,8 @@
FROM registry.redhat.io/ubi8/ubi
WORKDIR /app
RUN useradd appuser && \
chown -R appuser:appuser /app && \
chgrp -R 0 /app && \
chmod -R g=u /app
RUN yum install -y git java-1.8.0-openjdk && yum clean all -y
USER maven

7
settings.xml Normal file
View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>/localrepo</localRepository>
</settings>