https://github.com/nirdosh17/amplify-linux-container
Build AWS Amplify project inside linux container.
https://github.com/nirdosh17/amplify-linux-container
aws-amplify docker-image
Last synced: about 1 year ago
JSON representation
Build AWS Amplify project inside linux container.
- Host: GitHub
- URL: https://github.com/nirdosh17/amplify-linux-container
- Owner: nirdosh17
- Created: 2025-02-06T13:47:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-06T14:34:53.000Z (over 1 year ago)
- Last Synced: 2025-04-12T00:49:10.079Z (about 1 year ago)
- Topics: aws-amplify, docker-image
- Language: Dockerfile
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# amplify-linux-container
Build AWS Amplify Python app inside Linux container. This is useful when your app has packages that are platform- or architecture-specific, and a build on one platform (e.g. Mac/ARM) doesn’t work on another (e.g. linux/amd64).
### Setup
1. Setup env vars: `PROJECT_NAME`, `PROJECT_DIR`, `AWS_REGION` and `AWS_PROFILE` in `Makefile`.
- AWS credentials are mounted from `~/.aws` in the host machine to `/root/.aws` in the container.
2. Build docker image with all dependencies like amplify, awscli, node, python etc:
```
make build
```
3. Enter amplify container shell:
```
make ssh
```
4. Build and push your changes project:
- Your project is volume mounted to `/app/${PROJECT_NAME}` in the container.
- You can `cd` into it and run usual amplify commands.
- Confirm you have your existing environments: `amplify env list`.
Build and push your changes:
```
amplify push
```