Skip to content

Commit 516377a

Browse files
Merge branch 'main' into feat/microservice
2 parents 1aa2a6a + 565bcc8 commit 516377a

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Java 17 optimized image
2+
FROM bellsoft/liberica-runtime-container:jre-17-slim-musl
3+
4+
# Creates and switches to non-root user
5+
ENV APP_USER=app
6+
# Busybox syntax, which is available in the image
7+
RUN addgroup -S $APP_USER && adduser -D -g "" -G $APP_USER $APP_USER
8+
USER app
9+
10+
# Copy .jar to container
11+
ARG JAR_FILE=target/*.jar
12+
ENV APP_FOLDER=/opt/app
13+
WORKDIR $APP_FOLDER
14+
COPY $JAR_FILE app.jar
15+
16+
# Execute application
17+
ENTRYPOINT ["java", "-jar", "app.jar"]
18+
19+
EXPOSE 8080

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
# service-production
1+
# service-production
2+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=soat-tech-challenge_service-production&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=soat-tech-challenge_service-production) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=soat-tech-challenge_service-production&metric=coverage)](https://sonarcloud.io/summary/new_code?id=soat-tech-challenge_service-production) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=soat-tech-challenge_service-production&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=soat-tech-challenge_service-production)

0 commit comments

Comments
 (0)