Adding USER_ID and GROUP_ID to specify permission without making breaking change (#882)

* fixing permissions to be able to run springboot with given UID and GID

* Adding USER_ID and GROUP_ID to specify permission without making breaking change

* move su exec to start.sh

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
This commit is contained in:
Márk Gulyás
2025-09-05 23:00:48 -06:00
committed by GitHub
co-authored by Aditya Chandel
parent af622d9f75
commit 7604fa7fa0
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ RUN gradle clean build -x test
# Stage 3: Final image
FROM eclipse-temurin:21-jre-alpine
RUN apk update && apk add nginx gettext
RUN apk update && apk add nginx gettext su-exec
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY --from=angular-build /angular-app/dist/booklore/browser /usr/share/nginx/html