From 90cc8c60cadef3c18ee1041c42d1c925d6e583b0 Mon Sep 17 00:00:00 2001 From: Caleb Kiage Date: Thu, 24 Mar 2022 14:28:33 +0300 Subject: [PATCH] Add volumes for persistent tokens --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d8734b7f231..6b25ac4907c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,9 +43,11 @@ USER mgc COPY --chown=mgc:mgc ./docker/* ./dist/ -RUN chmod +x /app/dist/init.sh +RUN mkdir -p /app/.mgc /app/.local/share/.IdentityService /app/.local/share/keyrings &&\ + chmod +x /app/dist/init.sh + +VOLUME [ "/app/.mgc", ".local/share/.IdentityService", "/app/.local/share/keyrings" ] -# CMD ["bash", "-l"] ENTRYPOINT ["./dist/init.sh"] LABEL description="# Welcome to the Microsoft Graph CLI \