remove akkoma dir as root

This commit is contained in:
Kegan Myers 2023-07-23 13:24:55 -05:00
parent 93f68c4b85
commit 8062c75935

View file

@ -6,12 +6,12 @@ ENV PROD_SECRET_FILE=/config/prod.secret.exs
USER root USER root
RUN mkdir -p "$(dirname "${PROD_SECRET_FILE}")" && \ RUN mkdir -p "$(dirname "${PROD_SECRET_FILE}")" && \
touch "${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 USER akkoma
WORKDIR /opt WORKDIR /opt
RUN rm -rf akkoma && \ RUN git clone https://akkoma.dev/AkkomaGang/akkoma.git akkoma && \
git clone https://akkoma.dev/AkkomaGang/akkoma.git akkoma && \
git fetch --all && \ git fetch --all && \
git checkout "${AKKOMA_COMMIT}" git checkout "${AKKOMA_COMMIT}"