diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index c1068f2f3..000000000 --- a/.dockerignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!lbrynet diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c20a5752a..6f3aa75fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -183,13 +183,16 @@ jobs: uses: actions/download-artifact@v2 with: name: lbrynet-ubuntu-16.04 + - run: | + chmod +x lbrynet + mv lbrynet docker - name: build and push docker image uses: docker/build-push-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} repository: lbry/lbrynet - dockerfile: docker/Dockerfile + path: docker tag_with_ref: true tag_with_sha: true add_git_labels: true diff --git a/docker/Dockerfile b/docker/Dockerfile index 29e9cd8e9..50fba52fd 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,5 @@ FROM ubuntu:20.04 COPY lbrynet /bin -RUN chmod +x /bin/lbrynet +RUN lbrynet --version ENTRYPOINT ["lbrynet"] CMD ["start", "--full-node"]