File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
shenyu-dist/shenyu-admin-dist/docker Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
- FROM openjdk:8-jre- alpine
17
+ FROM alpine AS prepare
18
18
19
19
ARG APP_NAME
20
20
21
21
ENV LOCAL_PATH /opt/shenyu-admin
22
- ENV ADMIN_JVM ""
23
-
24
- RUN apk --no-cache add procps
25
22
26
23
ADD target/${APP_NAME}.tar.gz /opt
27
24
RUN mv /opt/${APP_NAME} ${LOCAL_PATH}
28
25
26
+ FROM openjdk:8-jre-alpine
27
+
28
+ 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}
29
34
COPY docker/logback.xml ${LOCAL_PATH}/conf/logback.xml
30
35
COPY docker/entrypoint.sh ${LOCAL_PATH}/entrypoint.sh
31
36
RUN chmod +x ${LOCAL_PATH}/entrypoint.sh
You can’t perform that action at this time.
0 commit comments