This commit is contained in:
@@ -21,10 +21,6 @@ WORKDIR /app
|
|||||||
# Optional: add tini to manage signals properly
|
# Optional: add tini to manage signals properly
|
||||||
RUN apt-get update && apt-get install -y tini && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y tini && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Create a non-root user
|
|
||||||
RUN useradd -m -u 1000 jvsuser
|
|
||||||
USER jvsuser
|
|
||||||
|
|
||||||
# Copy the built jar from the builder stage
|
# Copy the built jar from the builder stage
|
||||||
COPY --from=builder /build/target/*.jar /app/jvs.jar
|
COPY --from=builder /build/target/*.jar /app/jvs.jar
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user