Skip to content

Commit 07eaf26

Browse files
committed
Fix cat command
1 parent de26055 commit 07eaf26

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ RUN npx lerna run build --scope lit-dev-api --stream && \
4444
# Site content
4545
COPY packages/lit-dev-content/ ./packages/lit-dev-content/
4646
ARG PLAYGROUND_SANDBOX
47-
# Kaniko doesn't include ARG values in the layer cache key. This is different to
48-
# normal Docker behavior, which would invalidate anything after the ARG
47+
# Kaniko doesn't include ARG values in the layer cache key (see
48+
# https://github.com/GoogleContainerTools/kaniko/pull/1085). This is different
49+
# to normal Docker behavior, which would invalidate anything after the ARG
4950
# declaration if the value changes. So, we need to write it to the file system
5051
# to force a cache invalidation. Otherwise, we might re-use the most recent
5152
# Eleventy build output, even when the playground sandbox URL has changed.
52-
RUN cat $PLAYGROUND_SANDBOX > playground-sandbox
53+
RUN echo "$PLAYGROUND_SANDBOX" > playground-sandbox
5354
RUN npx lerna run build --scope lit-dev-content --stream
5455

5556
# Run the web service on container startup.

0 commit comments

Comments
 (0)