We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent defb046 commit 625441dCopy full SHA for 625441d
shenyu-dist/shenyu-admin-dist/docker/Dockerfile
@@ -14,18 +14,23 @@
14
# See the License for the specific language governing permissions and
15
# limitations under the License.
16
17
-FROM openjdk:8-jre-alpine
+FROM alpine AS prepare
18
19
ARG APP_NAME
20
21
ENV LOCAL_PATH /opt/shenyu-admin
22
-ENV ADMIN_JVM ""
23
-
24
-RUN apk --no-cache add procps
25
26
ADD target/${APP_NAME}.tar.gz /opt
27
RUN mv /opt/${APP_NAME} ${LOCAL_PATH}
28
+FROM openjdk:8-jre-alpine
+
+RUN apk --no-cache add procps
29
30
+ENV LOCAL_PATH /opt/shenyu-admin
31
+ENV ADMIN_JVM ""
32
33
+COPY --from=prepare ${LOCAL_PATH} ${LOCAL_PATH}
34
COPY docker/logback.xml ${LOCAL_PATH}/conf/logback.xml
35
COPY docker/entrypoint.sh ${LOCAL_PATH}/entrypoint.sh
36
RUN chmod +x ${LOCAL_PATH}/entrypoint.sh
0 commit comments