Skip to content

Commit c6836bc

Browse files
committed
switch to tmp dir to prepare mill.
1 parent e2b0d01 commit c6836bc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,12 @@ ARG MILL_VERSION="1.1.0"
118118
RUN \
119119
curl -L -o /usr/local/bin/mill https://repo1.maven.org/maven2/com/lihaoyi/mill-dist/$MILL_VERSION/mill-dist-$MILL_VERSION-mill.sh && \
120120
chmod +x /usr/local/bin/mill && \
121-
touch build.sc && \
122-
mill -i resolve _ && \
123-
rm build.sc
121+
mkdir -p /tmp/mill-build && \
122+
cd /tmp/mill-build && \
123+
touch build.sc && \
124+
mill -i resolve _ && \
125+
cd / && \
126+
rm -rf /tmp/mill-build
124127

125128
FROM base AS run
126129

0 commit comments

Comments
 (0)