From 7c930d3020f5c241fb3813a160ceede3c08363c5 Mon Sep 17 00:00:00 2001 From: Skydust Date: Sun, 10 Sep 2023 00:22:15 +0200 Subject: [PATCH] External volumes for docker --- .gitea/workflows/production.yml | 2 +- Dockerfile | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/production.yml b/.gitea/workflows/production.yml index 99ab070..b3c23b5 100644 --- a/.gitea/workflows/production.yml +++ b/.gitea/workflows/production.yml @@ -51,5 +51,5 @@ jobs: docker rm ${{ env.DOCKER_IMAGE_NAME }} || true docker image rm \${PREVIOUS_IMAGE} || true docker pull gitea.skydust.fr/${{ secrets.DOCKER_USER }}/${{ env.DOCKER_IMAGE_NAME }}:latest - docker run --restart=always -d --name="${{ env.DOCKER_IMAGE_NAME }}" gitea.skydust.fr/${{ secrets.DOCKER_USER }}/${{ env.DOCKER_IMAGE_NAME }}:latest + docker run --restart=always -v /opt/JdrBot/Songs:/app/Songs -v /opt/JdrBot/logs:/app/logs -d --name="${{ env.DOCKER_IMAGE_NAME }}" gitea.skydust.fr/${{ secrets.DOCKER_USER }}/${{ env.DOCKER_IMAGE_NAME }}:latest EOF \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 8b908ce..7a9dbd5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,6 @@ LABEL authors="skydust" WORKDIR /app COPY --from=builder /app/build/libs/JdrBot-all.jar /app/JdrBot.jar -COPY Songs /app/Songs COPY start.sh /app CMD ["/bin/bash","./start.sh"] \ No newline at end of file