mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:25:49 +00:00
Updated
This commit is contained in:
parent
91194f5140
commit
b0e56fb58f
3 changed files with 20 additions and 0 deletions
|
@ -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
|
8
docker-image/java-1.8/Dockerfile
Normal file
8
docker-image/java-1.8/Dockerfile
Normal 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
7
settings.xml
Normal 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>
|
Loading…
Reference in a new issue