mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
build: reduce image size
This commit is contained in:
+3
-4
@@ -4,11 +4,10 @@ LABEL authors="ReaJason<[email protected]>"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY build/libs/*.jar app.jar
|
||||
|
||||
RUN groupadd -r spring && \
|
||||
useradd -r -g spring spring && \
|
||||
chown spring:spring /app/app.jar
|
||||
useradd -r -g spring spring
|
||||
|
||||
COPY --chown=spring:spring build/libs/*.jar app.jar
|
||||
|
||||
USER spring:spring
|
||||
|
||||
|
||||
Reference in New Issue
Block a user