aws-lambda-layer-sharp
aws-lambda-layer-sharp copied to clipboard
Docker image building not working
When cloning the repo and running the Docker command I get below error:
docker-compose up --build
Error:
[+] Building 0.1s (2/2) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to parse stage name "baseBox": invalid reference format: repository name must be lowercase
I don't think it is related to your code, because when I prefix the command:
DOCKER_BUILDKIT=0 docker-compose up --build
https://stackoverflow.com/questions/64221861/an-error-failed-to-solve-with-frontend-dockerfile-v0
Not a Docker expert, but I may be worth mentioning this in the docs.
Hi @ChristianRich, thanks for the bug report. How critical is this for you? I am not using this approach anymore. If it's critical I'll take a look into it next week :)
Hi @woss Appreciate you being so forthcoming. I cloned your repo, did some modifications and made it work:
https://github.com/ChristianRich/aws-lambda-layer-npm-sharp
I linked to your repo in the readme.
What approach are you using now?
thanks, do you mind making a PR so i can review it and maybe help you out?
What approach are you using now? This >> https://github.com/kelp-hq/oss/tree/main/services/macula
I built ^^ because we started using IPFS to store images, and calling lambda didn't work as fast as i needed it. The proxy above solves all the issues of speed, and it is truly decentralized.
here are the links if you want to test the macula https://macula.kelp.digital/ipfs/bafybeic4fqttg2k6ibirqs57zcl3b2jd7hjnq22biyp542lfjhdyx5ausi any of the images you choose and add ?w=422&h=332
or any other values that macula supports.