diff --git a/.dockerignore b/.dockerignore index c923151b..71af057a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,3 @@ ** -!build/ +!docker/ !dist/ \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be728d27..8836fe82 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,7 +87,7 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} repository: cloudb0x/autoscan - dockerfile: build/Dockerfile + dockerfile: docker/Dockerfile tags: latest tag_with_ref: true tag_with_sha: true @@ -101,8 +101,7 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} repository: cloudb0x/autoscan - dockerfile: build/Dockerfile + dockerfile: docker/Dockerfile tags: master tag_with_sha: true always_pull: true - diff --git a/build/Dockerfile b/docker/Dockerfile similarity index 87% rename from build/Dockerfile rename to docker/Dockerfile index 1fe9c7b2..52c392a3 100644 --- a/build/Dockerfile +++ b/docker/Dockerfile @@ -11,7 +11,7 @@ ENV \ COPY ["dist/build_linux_linux_amd64/autoscan", "/app/autoscan/autoscan"] # Add root files -COPY ["build/root/", "/"] +COPY ["docker/run", "/etc/services.d/autoscan/run"] # Volume VOLUME ["/config"] \ No newline at end of file diff --git a/build/root/etc/services.d/autoscan/run b/docker/run similarity index 100% rename from build/root/etc/services.d/autoscan/run rename to docker/run