FROM python:3.10 | |
ARG now | |
ENV build_date=$(date +%s) | |
# Ensure the timestamp is available as an environment variable | |
# ENV BUILD_TIMESTAMP=$timestamp | |
# Print the timestamp to verify | |
RUN echo "The build timestamp is $build_date" |
FROM python:3.10 | |
ARG now | |
ENV build_date=$(date +%s) | |
# Ensure the timestamp is available as an environment variable | |
# ENV BUILD_TIMESTAMP=$timestamp | |
# Print the timestamp to verify | |
RUN echo "The build timestamp is $build_date" |