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 c08ae8c commit 95198bf
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Dockerfile.demo
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ FROM python:alpine AS pixabay

RUN --mount=type=secret,id=pixabay \
python <<EOF
print("HEYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY")
EOF

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

print(token)
# print(token)

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

EOF
# EOF

# RUN pip install pixabay

Expand Down

0 comments on commit 95198bf

Please sign in to comment.