File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,12 @@ RUN --mount=type=cache,target=/var/cache/dnf \
1313 # clean cache jobs
1414 && mv /etc/yum/protected.d/systemd.conf /etc/yum/protected.d/systemd.conf.bak
1515
16- COPY $PRESTO_PKG .
1716COPY --chmod=755 $PRESTO_CLI_JAR /opt/presto-cli
1817
19- RUN \
18+ RUN --mount=type=bind,source=$PRESTO_PKG,target=/$PRESTO_PKG \
2019 # Download Presto and move \
21- tar -zxf $PRESTO_PKG \
22- && mv ./presto-server-$PRESTO_VERSION $PRESTO_HOME \
23- && rm -rf $PRESTO_PKG \
24- && rm -rf ./presto-server-$PRESTO_VERSION \
20+ mkdir -p "$PRESTO_HOME" && \
21+ tar --strip-components=1 -C "$PRESTO_HOME" -zxf /$PRESTO_PKG \
2522 && ln -s /opt/presto-cli /usr/local/bin/ \
2623 # mkdir for config
2724 && mkdir -p $PRESTO_HOME/etc/catalog \
You can’t perform that action at this time.
0 commit comments