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 39cb95f commit 9789cab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile.demo
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ FROM python:alpine AS pixabay

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

print(token)

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

EOF

Expand Down

0 comments on commit 9789cab

Please sign in to comment.