ManiAz09 commited on
Commit
b843595
·
verified ·
1 Parent(s): beb1360

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -1,18 +1,14 @@
1
  FROM python:3.10
2
 
3
 
4
- # Define a build argument for the timestamp
5
- ARG BUILD_TIMESTAMP
6
 
7
- # Set the environment variable using the build argument
8
- ENV BUILD_TIMESTAMP=${BUILD_TIMESTAMP}
9
 
10
- # Use the timestamp in a command (for demonstration)
11
- RUN echo "Build timestamp: ${BUILD_TIMESTAMP}"
12
 
13
  # Ensure the timestamp is available as an environment variable
14
- ENV BUILD_TIMESTAMP=$timestamp
15
 
16
 
17
  # Print the timestamp to verify
18
- RUN echo "The build timestamp is $BUILD_TIMESTAMP"
 
1
  FROM python:3.10
2
 
3
 
4
+ ARG now
 
5
 
 
 
6
 
7
+ ENV build_date=$now
 
8
 
9
  # Ensure the timestamp is available as an environment variable
10
+ # ENV BUILD_TIMESTAMP=$timestamp
11
 
12
 
13
  # Print the timestamp to verify
14
+ RUN echo "The build timestamp is $build_date"