From 8062c75935399b0f6b29c11af590d405989dc3e6 Mon Sep 17 00:00:00 2001 From: Kegan Myers Date: Sun, 23 Jul 2023 13:24:55 -0500 Subject: [PATCH] remove akkoma dir as root --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a712977..8e0168e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,12 @@ ENV PROD_SECRET_FILE=/config/prod.secret.exs USER root RUN mkdir -p "$(dirname "${PROD_SECRET_FILE}")" && \ touch "${PROD_SECRET_FILE}" && \ - chown -R 1000:1000 "$(dirname "${PROD_SECRET_FILE}")" + chown -R 1000:1000 "$(dirname "${PROD_SECRET_FILE}")" && \ + rm -rf /opt/akkoma USER akkoma WORKDIR /opt -RUN rm -rf akkoma && \ - git clone https://akkoma.dev/AkkomaGang/akkoma.git akkoma && \ +RUN git clone https://akkoma.dev/AkkomaGang/akkoma.git akkoma && \ git fetch --all && \ git checkout "${AKKOMA_COMMIT}"