Skip to content

Commit 7486932

Browse files
committed
fixes Dockerfile
1 parent 1d92f29 commit 7486932

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ EXPOSE 8080
55
ENV APP_HOME /app
66
ENV JAVA_OPTS=""
77

8-
USER springboot
98
RUN adduser -S -u 1000 springboot && \
109
mkdir -p $APP_HOME/logs && \
1110
chown -R springboot $APP_HOME
11+
USER springboot
1212

1313
WORKDIR $APP_HOME
1414

@@ -17,4 +17,4 @@ COPY ${JAR_FILE} $APP_HOME/app.jar
1717

1818
VOLUME /tmp $APP_HOME/config $APP_HOME/logs
1919

20-
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Dlogging.path=$APP_HOME/logs -jar app.jar" ]
20+
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Dlogging.path=$APP_HOME/logs -jar app.jar" ]

0 commit comments

Comments
 (0)