FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
Dockerfile:7
5 | COPY . .
6 | RUN go mod download
7 | >>> RUN GOARCH=amd64 GOOS=linux go build -o build/s57-tiler ./cmd/s57-tiler
8 | FROM ghcr.io/osgeo/gdal:ubuntu-small-3.7.1
9 | WORKDIR /app
ERROR: failed to solve: process "/bin/sh -c GOARCH=amd64 GOOS=linux go build -o build/s57-tiler ./cmd/s57-tiler" did not complete successfully: exit code: 2
pi@openplotter:~/s57-tiler $ ^C
Was trying to install s57 tiler and received this error. Do not know what to do to fix.
=> [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 434B 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (li 0.1s => [internal] load metadata for ghcr.io/osgeo/gdal:ubuntu-small-3.7.1 0.6s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build context 0.1s => => transferring context: 2.96kB 0.1s => [build 1/7] FROM ghcr.io/osgeo/gdal:ubuntu-small-3.7.1@sha256:25c22fd 0.0s => CACHED [stage-1 2/3] WORKDIR /app 0.0s => CACHED [build 2/7] RUN apt-get update 0.0s => CACHED [build 3/7] RUN apt-get -y install libgdal-dev golang-go build 0.0s => CACHED [build 4/7] WORKDIR /app 0.0s => CACHED [build 5/7] COPY . . 0.0s => CACHED [build 6/7] RUN go mod download 0.0s => ERROR [build 7/7] RUN GOARCH=amd64 GOOS=linux go build -o build/s57- 56.8s
1 warning found (use --debug to expand):
FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) Dockerfile:7
5 | COPY . . 6 | RUN go mod download 7 | >>> RUN GOARCH=amd64 GOOS=linux go build -o build/s57-tiler ./cmd/s57-tiler 8 | FROM ghcr.io/osgeo/gdal:ubuntu-small-3.7.1 9 | WORKDIR /app
ERROR: failed to solve: process "/bin/sh -c GOARCH=amd64 GOOS=linux go build -o build/s57-tiler ./cmd/s57-tiler" did not complete successfully: exit code: 2 pi@openplotter:~/s57-tiler $ ^C