mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-06 06:11:12 +00:00
added pipeline and dockerfile
This commit is contained in:
parent
aa2273e955
commit
a86e3a6ca3
3 changed files with 142 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM maven:3.9-eclipse-temurin-17 AS builder
|
||||
COPY . /spc
|
||||
WORKDIR /spc
|
||||
RUN mvn package
|
||||
|
||||
FROM eclipse-temurin:17-alpine
|
||||
LABEL org="spc build" author="venkat"
|
||||
ARG USERNAME=spc
|
||||
RUN apk add --no-cache bash
|
||||
RUN adduser -D -h /apps -s /bin/bash/ ${USERNAME}
|
||||
USER ${USERNAME}
|
||||
COPY --from=builder --chown={USERNAME}:{USERNAME} /spc/target/spring-petclinic-3.4.0-SNAPSHOT.jar /apps/spring-petclinic-3.4.0-SNAPSHOT.jar
|
||||
WORKDIR /apps
|
||||
EXPOSE 8080
|
||||
Loading…
Add table
Add a link
Reference in a new issue