cusdis icon indicating copy to clipboard operation
cusdis copied to clipboard

Is not possible to create a Docker image with the Dockerfile in an architecture of linux/arm64

Open pepev-nrt opened this issue 7 months ago • 0 comments

I'm using a Rasberry Pi 5 with Raspbian OS (Debian GNU/Linux 12 (bookworm) aarch64). When I try to build the image using the command docker build i have and error related with yarn. ¿Maybe the dependencies are outdated?

$ docker build -t cusdis:build .
[+] Building 31.5s (12/17)                                                                        docker:default
 => [internal] load build definition from Dockerfile                                                        0.0s
 => => transferring dockerfile: 702B                                                                        0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)                              0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 20)                             0.0s
 => [internal] load metadata for docker.io/library/node:16-alpine3.15                                       1.6s
 => [internal] load .dockerignore                                                                           0.0s
 => => transferring context: 2B                                                                             0.0s
 => [builder 1/8] FROM docker.io/library/node:16-alpine3.15@sha256:ecf74556cdeee48382e555a377ddb12d36161bd  5.7s
 => => resolve docker.io/library/node:16-alpine3.15@sha256:ecf74556cdeee48382e555a377ddb12d36161bd33349dc7  0.0s
 => => sha256:e074cfb82770f87e8ecf00a2cc93abd3d0d88d8b55701b5fdfe399053b3d8004 1.16kB / 1.16kB              0.0s
 => => sha256:fb1708dc1692988259e3a9db843f76d09eff6cee66dedf6207879ab69eaae5f9 6.45kB / 6.45kB              0.0s
 => => sha256:47517142f6ba87eca6b7bdca1e0df160b74671c81e4b9605dad38c1862a43be3 2.72MB / 2.72MB              0.7s
 => => sha256:3985b5f9edf0422f4f55bb0883f815b312c6cc1ff18b3582c561b799aba927ea 36.35MB / 36.35MB            0.9s
 => => sha256:c1ae0ba08effd4ca1775a9d4550a541324d0362dbbe4012195ec1d7b201cd404 2.41MB / 2.41MB              0.6s
 => => sha256:ecf74556cdeee48382e555a377ddb12d36161bd33349dc79290f733f763df711 1.43kB / 1.43kB              0.0s
 => => sha256:9fe6076ce82337809464a4810e78a37f05fcad443969c6e0605bd2e89a30babf 447B / 447B                  0.9s
 => => extracting sha256:47517142f6ba87eca6b7bdca1e0df160b74671c81e4b9605dad38c1862a43be3                   0.3s
 => => extracting sha256:3985b5f9edf0422f4f55bb0883f815b312c6cc1ff18b3582c561b799aba927ea                   3.6s
 => => extracting sha256:c1ae0ba08effd4ca1775a9d4550a541324d0362dbbe4012195ec1d7b201cd404                   0.2s
 => => extracting sha256:9fe6076ce82337809464a4810e78a37f05fcad443969c6e0605bd2e89a30babf                   0.0s
 => [internal] load build context                                                                           0.9s
 => => transferring context: 14.54MB                                                                        0.9s
 => [runner 2/6] WORKDIR /app                                                                               0.3s
 => [builder 2/8] RUN apk add --no-cache python3 py3-pip make gcc g++                                       5.6s
 => [builder 3/8] COPY . /app                                                                               0.1s 
 => [builder 4/8] COPY package.json yarn.lock /app/                                                         0.0s 
 => [builder 5/8] WORKDIR /app                                                                              0.0s 
 => [builder 6/8] RUN npm install -g pnpm                                                                   1.8s 
 => ERROR [builder 7/8] RUN yarn install --frozen-lockfile && npx browserslist@latest --update-db          16.5s 
------                                                                                                           
 > [builder 7/8] RUN yarn install --frozen-lockfile && npx browserslist@latest --update-db:                      
0.336 yarn install v1.22.19
0.433 [1/4] Resolving packages...
16.50 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
16.50 error Your lockfile needs to be updated, but yarn was run with `--frozen-lockfile`.
------

 2 warnings found (use docker --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 20)
Dockerfile:17
--------------------
  15 |     
  16 |     RUN npm install -g pnpm
  17 | >>> RUN yarn install --frozen-lockfile && npx browserslist@latest --update-db
  18 |     RUN npm run build:without-migrate
  19 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn install --frozen-lockfile && npx browserslist@latest --update-db" did not complete successfully: exit code: 1

pepev-nrt avatar May 23 '25 21:05 pepev-nrt