Skip to content

Commit

Permalink
chore: unfix jar final name
Browse files Browse the repository at this point in the history
  • Loading branch information
g-otn committed Jan 23, 2024
1 parent 3447e39 commit 15f0ee0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
FROM bellsoft/liberica-runtime-container:jre-17-slim-musl

# Creates and switches to non-root user
ENV APP_USER=backend
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 backend
USER app

# Copy .jar to container
ARG JAR_FILE=target/app.jar
ARG JAR_FILE=target/*.jar
ENV APP_FOLDER=/opt/app
WORKDIR $APP_FOLDER
COPY $JAR_FILE app.jar
Expand Down
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
</dependencies>

<build>
<finalName>app</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -175,4 +174,4 @@
</build>
</profile>
</profiles>
</project>
</project>

0 comments on commit 15f0ee0

Please sign in to comment.