Skip to content

Commit

Permalink
Merge branch 'main' into feat/microservice
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelovbcfilho committed Jan 26, 2024
2 parents 1aa2a6a + 565bcc8 commit 516377a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Java 17 optimized image
FROM bellsoft/liberica-runtime-container:jre-17-slim-musl

# Creates and switches to non-root user
ENV APP_USER=app
# Busybox syntax, which is available in the image
RUN addgroup -S $APP_USER && adduser -D -g "" -G $APP_USER $APP_USER
USER app

# Copy .jar to container
ARG JAR_FILE=target/*.jar
ENV APP_FOLDER=/opt/app
WORKDIR $APP_FOLDER
COPY $JAR_FILE app.jar

# Execute application
ENTRYPOINT ["java", "-jar", "app.jar"]

EXPOSE 8080
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# service-production
# service-production
[![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 comments on commit 516377a

Please sign in to comment.