Setting the file. One moment.
Skill 156 · Deploying Containers To Amazon Lightsail
Subchapter 156.2
references/github-source.mdMarkdown941 BView on GitHub
Lightsail does not build from a git repository. The build happens on your machine; from there this is exactly the local-image path. The repo must contain a Dockerfile.
Clone the repo and confirm it has a Dockerfile:
git clone REPO_URL && cd REPOIf there is no Dockerfile, the app must be containerized first — this path does not apply until it is.
Build for linux/amd64:
docker build --platform linux/amd64 -t my-app .From here, follow the local-image path — push the built image into the service registry, then deploy. See local-image.md (opens in a new tab) (steps 2–3) and deployment.md (opens in a new tab).
git push. Automatic
redeploy-on-push is a separate CI/CD concern and is not part of this path.