Open tfeyereisen opened 3 years ago
Docker build fails with the following error:
Cloning into '.'... Warning: Permanently added the RSA host key for IP address '140.82.112.3' to the list of known hosts. Reset branch 'main' Your branch is up-to-date with 'origin/main'. KernelVersion: 4.4.0-1060-aws Components: [{u'Version': u'19.03.8', u'Name': u'Engine', u'Details': {u'KernelVersion': u'4.4.0-1060-aws', u'Os': u'linux', u'BuildTime': u'2020-03-11T01:24:30.000000000+00:00', u'ApiVersion': u'1.40', u'MinAPIVersion': u'1.12', u'GitCommit': u'afacb8b7f0', u'Arch': u'amd64', u'Experimental': u'false', u'GoVersion': u'go1.12.17'}}, {u'Version': u'1.2.13', u'Name': u'containerd', u'Details': {u'GitCommit': u'7ad184331fa3e55e52b890ea95e65ba581ae3429'}}, {u'Version': u'1.0.0-rc10', u'Name': u'runc', u'Details': {u'GitCommit': u'dc9208a3303feef5b3839f4323d9beb36df0a9dd'}}, {u'Version': u'0.18.0', u'Name': u'docker-init', u'Details': {u'GitCommit': u'fec3683'}}] Arch: amd64 BuildTime: 2020-03-11T01:24:30.000000000+00:00 ApiVersion: 1.40 Platform: {u'Name': u'Docker Engine - Community'} Version: 19.03.8 MinAPIVersion: 1.12 GitCommit: afacb8b7f0 Os: linux GoVersion: go1.12.17 Starting build of index.docker.io/dirtleague/dirtleague:latest... Step 1/7 : FROM mhart/alpine-node:14 ---> b3372d2c793c Step 2/7 : RUN mkdir /build ---> Running in c64980c3f267 Removing intermediate container c64980c3f267 ---> 82d2dce599da Step 3/7 : WORKDIR /build ---> Running in e0d7a1b6092c Removing intermediate container e0d7a1b6092c ---> 2b058db2a9bb Step 4/7 : COPY . . ---> 246b707f6980 Step 5/7 : RUN yarn install --frozen-lockfile --prefer-offline --cache-folder ./cache ---> Running in eb0e342d70fc yarn install v1.22.10 info No lockfile found. [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... Done in 0.08s. Removing intermediate container eb0e342d70fc ---> e0a2bd5bc878 Step 6/7 : RUN yarn build:client ---> Running in c4b5559b996f yarn run v1.22.10 [91merror Couldn't find a package.json file in "/build" [0m info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Removing intermediate container c4b5559b996f The command '/bin/sh -c yarn build:client' returned a non-zero code: 1
This error message is from Dockerhub. I'm testing locally to reproduce. I may have dockerhub pointed to an outdated commit.
We need to get dockerhub authenticated to this repo.
Might be related: https://stackoverflow.com/questions/35075418/dockerhub-automated-build-fails-not-a-directory-when-adding-file
Docker build fails with the following error: