Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -2,10 +2,11 @@ FROM python:3.10
|
|
| 2 |
|
| 3 |
|
| 4 |
# RUN apk add --no-cache bash
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
# Get the current timestamp and store it in an environment variable
|
| 8 |
-
RUN timestamp=$(date +%
|
| 9 |
echo "Timestamp: $timestamp" && \
|
| 10 |
echo "export BUILD_TIMESTAMP=$timestamp" >> /etc/profile
|
| 11 |
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
# RUN apk add --no-cache bash
|
| 5 |
+
# +%Y%m%d%H%M%S
|
| 6 |
|
| 7 |
|
| 8 |
# Get the current timestamp and store it in an environment variable
|
| 9 |
+
RUN timestamp=$(date +%s) && \
|
| 10 |
echo "Timestamp: $timestamp" && \
|
| 11 |
echo "export BUILD_TIMESTAMP=$timestamp" >> /etc/profile
|
| 12 |
|