mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
🔧 优化 Dockerfile,减少层数
WORKDIR 可以自动创建文件夹,无需执行 mkdir 命令
This commit is contained in:
parent
ac2b4fd2de
commit
d98073e5fc
@ -1,7 +1,5 @@
|
||||
FROM moxm/java:1.8-full
|
||||
|
||||
RUN mkdir -p /pig-auth
|
||||
|
||||
WORKDIR /pig-auth
|
||||
|
||||
ARG JAR_FILE=target/pig-auth.jar
|
||||
|
@ -1,7 +1,5 @@
|
||||
FROM moxm/java:1.8-full
|
||||
|
||||
RUN mkdir -p /pig-gateway
|
||||
|
||||
WORKDIR /pig-gateway
|
||||
|
||||
ARG JAR_FILE=target/pig-gateway.jar
|
||||
|
@ -1,7 +1,5 @@
|
||||
FROM moxm/java:1.8-full
|
||||
|
||||
RUN mkdir -p /pig-register
|
||||
|
||||
WORKDIR /pig-register
|
||||
|
||||
ARG JAR_FILE=target/pig-register.jar
|
||||
|
@ -1,7 +1,5 @@
|
||||
FROM moxm/java:1.8-full
|
||||
|
||||
RUN mkdir -p /pig-upms-biz
|
||||
|
||||
WORKDIR /pig-upms-biz
|
||||
|
||||
ARG JAR_FILE=target/pig-upms-biz.jar
|
||||
|
@ -1,7 +1,5 @@
|
||||
FROM moxm/java:1.8-full
|
||||
|
||||
RUN mkdir -p /pig-codegen
|
||||
|
||||
WORKDIR /pig-codegen
|
||||
|
||||
ARG JAR_FILE=target/pig-codegen.jar
|
||||
|
@ -1,7 +1,5 @@
|
||||
FROM moxm/java:1.8-full
|
||||
|
||||
RUN mkdir -p /pig-monitor
|
||||
|
||||
WORKDIR /pig-monitor
|
||||
|
||||
ARG JAR_FILE=target/pig-monitor.jar
|
||||
|
@ -1,7 +1,5 @@
|
||||
FROM moxm/java:1.8-full
|
||||
|
||||
RUN mkdir -p /pig-quartz
|
||||
|
||||
WORKDIR /pig-quartz
|
||||
|
||||
ARG JAR_FILE=target/pig-quartz.jar
|
||||
|
Loading…
Reference in New Issue
Block a user