ManiAz09 commited on
Commit
e72f185
·
verified ·
1 Parent(s): 1f680c1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ RUN apk add --no-cache bash
2
+
3
+
4
+ # Get the current timestamp and store it in an environment variable
5
+ RUN timestamp=$(date +%Y%m%d%H%M%S) && \
6
+ echo "Timestamp: $timestamp" && \
7
+ echo "export BUILD_TIMESTAMP=$timestamp" >> /etc/profile
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_TIMESTAMP"