Last active
November 22, 2021 09:11
-
-
Save skrobul/9eda8054c364c25cfe03888d880891a7 to your computer and use it in GitHub Desktop.
eufy-security-ws node 16 build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:16-alpine as build | |
WORKDIR /tmp | |
COPY . . | |
RUN npm ci && npm run build | |
FROM node:16-alpine | |
WORKDIR /usr/src/app | |
COPY --from=build /tmp/dist ./dist | |
COPY --from=build /tmp/docker/run.sh ./run.sh | |
COPY --from=build /tmp/package.json ./package.json | |
COPY --from=build /tmp/package-lock.json ./package-lock.json | |
RUN apk add --no-cache jq \ | |
&& NODE_ENV=production npm ci --only=production | |
EXPOSE 3000 | |
VOLUME ["/data"] | |
CMD [ "/usr/src/app/run.sh" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ docker buildx build --platform linux/arm/v7 -f docker/Dockerfile -t skrobul/eufy-security-ws-newnode:0.5.5 . | |
WARN[0000] No output specified for docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load | |
[+] Building 127.1s (15/15) FINISHED | |
=> [internal] load build definition from Dockerfile 0.1s | |
=> => transferring dockerfile: 529B 0.0s | |
=> [internal] load .dockerignore 0.1s | |
=> => transferring context: 2B 0.0s | |
=> [internal] load metadata for docker.io/library/node:16-alpine 1.5s | |
=> [auth] library/node:pull token for registry-1.docker.io 0.0s | |
=> [build 1/4] FROM docker.io/library/node:16-alpine@sha256:60ef0bed1dc2ec835cfe3c4226d074fdfaba571fd619c280474cc04e93f0ec5b 0.1s | |
=> => resolve docker.io/library/node:16-alpine@sha256:60ef0bed1dc2ec835cfe3c4226d074fdfaba571fd619c280474cc04e93f0ec5b 0.1s | |
=> [internal] load build context 2.9s | |
=> => transferring context: 125.76MB 2.8s | |
=> CACHED [build 2/4] WORKDIR /tmp 0.0s | |
=> [build 3/4] COPY . . 1.7s | |
=> [build 4/4] RUN npm ci && npm run build 91.3s | |
=> CACHED [stage-1 2/7] WORKDIR /usr/src/app 0.0s | |
=> CACHED [stage-1 3/7] COPY --from=build /tmp/dist ./dist 0.0s | |
=> CACHED [stage-1 4/7] COPY --from=build /tmp/docker/run.sh ./run.sh 0.0s | |
=> CACHED [stage-1 5/7] COPY --from=build /tmp/package.json ./package.json 0.0s | |
=> [stage-1 6/7] COPY --from=build /tmp/package-lock.json ./package-lock.json 0.1s | |
=> ERROR [stage-1 7/7] RUN apk add --no-cache jq && npm ci --only=production 28.8s | |
------ | |
> [stage-1 7/7] RUN apk add --no-cache jq && npm ci --only=production: | |
#15 0.255 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/armv7/APKINDEX.tar.gz | |
#15 1.069 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/armv7/APKINDEX.tar.gz | |
#15 1.969 (1/2) Installing oniguruma (6.9.7.1-r0) | |
#15 2.045 (2/2) Installing jq (1.6-r1) | |
#15 2.113 Executing busybox-1.33.1-r6.trigger | |
#15 2.158 OK: 6 MiB in 18 packages | |
#15 24.83 | |
#15 24.83 > [email protected] prepare | |
#15 24.83 > npm run build | |
#15 24.83 | |
#15 28.42 | |
#15 28.42 > [email protected] build | |
#15 28.42 > tsc -p . | |
#15 28.42 | |
#15 28.47 /bin/sh: tsc: not found | |
#15 28.51 npm notice | |
#15 28.51 npm notice New patch version of npm available! 8.1.0 -> 8.1.4 | |
#15 28.51 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.1.4> | |
#15 28.51 npm notice Run `npm install -g [email protected]` to update! | |
#15 28.51 npm notice | |
#15 28.53 npm ERR! code 127 | |
#15 28.53 npm ERR! path /usr/src/app | |
#15 28.54 npm ERR! command failed | |
#15 28.54 npm ERR! command sh -c npm run build | |
#15 28.59 | |
#15 28.60 npm ERR! A complete log of this run can be found in: | |
#15 28.60 npm ERR! /root/.npm/_logs/2021-11-22T09_01_18_322Z-debug.log | |
------ | |
Dockerfile:12 | |
-------------------- | |
11 | COPY --from=build /tmp/package-lock.json ./package-lock.json | |
12 | >>> RUN apk add --no-cache jq \ | |
13 | >>> && npm ci --only=production | |
14 | EXPOSE 3000 | |
-------------------- | |
error: failed to solve: process "/bin/sh -c apk add --no-cache jq && npm ci --only=production" did not complete successfully: exit code: 127 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment