Download Dockerfile from ManiAz09/TestSpace: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/spaces/ManiAz09/TestSpace/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ManiAz09/TestSpace/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ManiAz09/TestSpace/resolve/main/Dockerfile
493 Bytes
| FROM python:3.10 | |
| # Generate the timestamp and store it in a file | |
| RUN echo $(date +%s) > /timestamp.txt | |
| # Set an environment variable to the timestamp value | |
| ENV TIMESTAMP_FILE=/timestamp.txt | |
| # Use a custom entrypoint or command to load the timestamp into an environment variable | |
| ENTRYPOINT ["/bin/sh", "-c", "export TIMESTAMP=$(cat $TIMESTAMP_FILE) && exec \"$@\"", "--"] | |
| # Example command to show how to use it | |
| CMD ["python", "-c", "import os; print('Timestamp:', os.getenv('TIMESTAMP'))"] |