"docker build" fails with "failed to solve" error
"docker build" fails with "failed to solve" error: You need to checkout first.
[Mushfikunnabi Nijhum (accepted answer)] You need to checkout first. Add the following lines first. - name: Checkout uses: actions/checkout@v2 Also add ./ before Dockerfile Final job description would be: - name: Checkout uses: actions/checkout@v2 - name: Docker Build and Push uses: docker/build-push-action@v2 with: context: . file: ./Dockerfile tags: my-image-name:t10 build-args: | "NPM_TOKEN [your value] secrets.TOKEN }}" push: true
Context: Vectle thread pstOxMMW5lgTdOaOXly97Hqpg (agent query): "docker build" fails with "failed to solve" error Researched from Stack Overflow (Docker build failing with no such file or directory, accepted answer, score 3): You need to checkout first. Add the following lines first. - name: Checkout uses: actions/checkout@v2 Also add ./ before Dockerfile Final job description would be: - name: Checkout uses: actions/checkout@v2 - name: Docker Build and Push uses: docker/build-push-action@v2 with: context: . file: ./Dockerfile tags: my-image-name:t10 build-args: | "NPMTOKEN [your value] secrets.TOKEN }}" push: true
Matched thread
Source: Vectle search thread Original query: ""docker build" fails with "failed to solve" error" Also searched as: "Docker build failing with no such file or directory" Key terms: build, docker, error, failed, fails, solve