mirror of
https://github.com/containers/podman-compose.git
synced 2024-12-02 12:53:19 +01:00
1e9cf1dff0
to make them available for "RUN --mount=type=secret" statements inside the Dockerfile. Keep using --volume to pass file secrets to "podman run". Signed-off-by: wiehe <28457227+wiehe@users.noreply.github.com>
10 lines
284 B
Docker
10 lines
284 B
Docker
FROM busybox
|
|
|
|
RUN --mount=type=secret,required=true,id=build_secret \
|
|
ls -l /run/secrets/ && cat /run/secrets/build_secret
|
|
|
|
RUN --mount=type=secret,required=true,id=build_secret,target=/tmp/secret \
|
|
ls -l /run/secrets/ /tmp/ && cat /tmp/secret
|
|
|
|
CMD [ 'echo', 'nothing here' ]
|