mirror of
https://github.com/Dokploy/examples.git
synced 2026-06-15 20:25:24 +02:00
10 lines
279 B
Plaintext
10 lines
279 B
Plaintext
FROM alpine:latest
|
|
|
|
ARG CACHE_BUST
|
|
|
|
RUN --mount=type=secret,id=MESSAGE \
|
|
echo "Secret contents (mounted): $(cat /run/secrets/MESSAGE)" \
|
|
&& sleep 10
|
|
|
|
RUN echo -n "Secret file "; if [ -e /run/secrets/MESSAGE ]; then echo "mounted ❌"; else echo "unmounted ✅"; fi; sleep 10
|