Skip to content

Commit

Permalink
will it work?
Browse files Browse the repository at this point in the history
  • Loading branch information
PilnyTomas committed Mar 7, 2024
1 parent b51c081 commit 221c270
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ FROM prepare AS run
#ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache

# Copy the necessarry files - the script, resources and orgonit
COPY script.py /
#COPY script.py /

# Run the sript to generate the text outputs
#ENTRYPOINT ["python", "./script.py"]
ENTRYPOINT ["sh", "-c", "echo \"Hello from Docker\""]
ENTRYPOINT ["entrypoint.sh"]
#ENTRYPOINT ["sh", "-c", "echo \"Hello from Docker\""]


# Copy the generated files out of the container
Expand Down
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -l

echo "Hello $1"
time=$(date)
echo "time=$time" >> $GITHUB_OUTPUT
echo "Hello From docker entryopint.sh"
python script.py
echo "Python script finished and returned ${?}"

0 comments on commit 221c270

Please sign in to comment.