mirror of
https://github.com/adityachandelgit/BookLore.git
synced 2026-02-18 03:07:40 +01:00
Revert: fixing permissions to be able to run springboot with given UID and GID (#864)
This commit is contained in:
committed by
Aditya Chandel
parent
401c06d01e
commit
7cd6dc0688
@@ -27,7 +27,7 @@ RUN gradle clean build
|
||||
# Stage 3: Final image
|
||||
FROM eclipse-temurin:21-jre-alpine
|
||||
|
||||
RUN apk update && apk add nginx su-exec
|
||||
RUN apk update && apk add nginx
|
||||
|
||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=angular-build /angular-app/dist/booklore/browser /usr/share/nginx/html
|
||||
@@ -36,4 +36,4 @@ COPY --from=springboot-build /springboot-app/build/libs/booklore-api-0.0.1-SNAPS
|
||||
EXPOSE 8080 80
|
||||
|
||||
CMD /usr/sbin/nginx -g "daemon off;" & \
|
||||
su-exec ${PUID:-0}:${PGID:-0} java -jar /app/app.jar
|
||||
java -jar /app/app.jar
|
||||
Reference in New Issue
Block a user