From 71b027e4c69064cc6bd7c5cc54f6274cb4ba66dd Mon Sep 17 00:00:00 2001 From: heedaeshin Date: Fri, 22 Nov 2024 11:57:05 +0900 Subject: [PATCH] Fix : Dockerimage for admin-cli --- Dockerfile | 2 ++ docker-compose.yaml | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 44aa50b..cb2dc92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,6 +38,8 @@ RUN chown -R ${USER}:${GROUP} /app USER ${USER} COPY --from=builder --chown=${USER}:${GROUP} /opt/app /app/app COPY --from=builder --chown=${USER}:${GROUP} /opt/web /app/web +COPY --from=builder --chown=${USER}:${GROUP} /opt/data /app/data +COPY --from=builder --chown=${USER}:${GROUP} /opt/scripts /app/scripts #------------------------------------------------------------- # Add entrypoint script COPY --chown=${USER}:${GROUP} entrypoint.sh /app/entrypoint.sh diff --git a/docker-compose.yaml b/docker-compose.yaml index fb45f3d..10072b0 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -29,9 +29,9 @@ services: - "3300:3300" restart : always volumes: - - ./data:/app/data/ - - ./scripts:/app/scripts/ - - /etc/localtime:/etc/localtime:ro + - ./data:/app/data/ # container-volume + - ./scripts:/app/scripts/ # container-volume + - /etc/localtime:/etc/localtime:ro # timezone env_file: - .env # Health check configuration