Skip to content

Commit

Permalink
Test build demo gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
rigon committed Dec 10, 2024
1 parent 9789cab commit 393998d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Dockerfile.demo
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
FROM python:alpine AS pixabay

RUN --mount=type=secret,id=pixabay \
python <<EOF
token="NO TOKEN"
with open('/run/secrets/token', 'r') as file:
token = file.read()
ls -lha /run/secrets/ > test.txt

print(token)
# python <<EOF
# token="NO TOKEN"
# with open('/run/secrets/token', 'r') as file:
# token = file.read()

with open('/test.txt', 'w') as file:
file.write("Hello, World!\n")
file.write(token)
# print(token)

EOF
# with open('/test.txt', 'w') as file:
# file.write("Hello, World!\n")
# file.write(token)

# EOF

# with open('/run/secrets/token', 'r') as file:
# token = file.read()
Expand Down

0 comments on commit 393998d

Please sign in to comment.