From f3ca970174a18cdc346fc1013b5b513524f3cfeb Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 21 Jun 2025 22:16:25 -0500 Subject: [PATCH] deployed at fix --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e0e4a4d..1cd3bc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,16 +53,19 @@ RUN apt-get update -y && \ RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8" -# Set deployment timestamp to current time during build -RUN date -u +"%Y-%m-%dT%H:%M:%SZ" > /app/deployed_at.txt - -# Set working directory +# Set working directory and create it WORKDIR "/app" -RUN chown nobody /app +RUN mkdir -p /app + +# Set deployment timestamp to current time during runtime container build +RUN date -u +"%Y-%m-%dT%H:%M:%SZ" > /app/deployed_at.txt # Copy release from builder COPY --from=builder --chown=nobody:root /app/release ./ +# Set ownership for the entire app directory +RUN chown -R nobody:root /app + # Set user and command USER nobody CMD ["/app/bin/server"]