- This application is part of the FargateExample. Please refer to the readme of the
FargateExample
to get an overview of application architecture and other instructions. Later on, you will be redirected to this readme to build docker images to be pushed to AWS ECR repository. - See DockerFile for more details on how the container is initialized.
- If using intel cpu: Run
docker build -t ratings-service .
- If using apple silicon cpu: Run
docker buildx build --platform=linux/amd64 -t ratings-service .
docker tag ratings-service:latest <aws_acc_id>.dkr.ecr.us-west-2.amazonaws.com/ratings-service:latest
- Run the following:
docker run -p8080:80 ratings-service
OR
docker run --platform linux/amd64 -p8080:80 ratings-service
- Service should be accessible via:
localhost:8080/api/ratings