From d3aaff75cfbd56f8f94280c583fa9e73a15463ff Mon Sep 17 00:00:00 2001 From: david Date: Mon, 22 Jul 2024 04:58:16 +0200 Subject: [PATCH] add build version --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c0f0c4b..bf89917 100644 --- a/Dockerfile +++ b/Dockerfile @@ -120,10 +120,9 @@ COPY --from=builder /app/.bundle /app/.bundle COPY --from=assets /app/public/assets /app/public/assets RUN chown -R app:app /app/tmp /app/log /app/storage +RUN date -u +"%Y-%m-%d %H:%M:%s" >> .build_version USER app # Using variables in command list is not possible: # https://stackoverflow.com/questions/40454470/how-can-i-use-a-variable-inside-a-dockerfile-cmd CMD [ "rails", "server", "--binding", "0.0.0.0", "--no-daemon", "--port" , "3000" ] - -RUN date -u +"%Y-%m-%d %H:%M:%s" >> .build_version \ No newline at end of file