🐳Docker container for the polyfill.io service to serve JavaScript bundles per browser efficiently.
Clone this repository and build the image:
docker build . -t js-polyfill-dockerAfter this just run the container and bind the port with
docker run js-polyfill-docker -p 8801:8801We use this on ifixit.com for our javascript polyfills.
In order to update our docker image:
- Log in to
ecr-public:
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
- Tag the freshly built docker image:
docker tag <new image id> public.ecr.aws/s0h8b9s4/js-polyfill-docker:<VERSION_TAG>
- Push to ECR:
docker push public.ecr.aws/s0h8b9s4/js-polyfill-docker:<VERSION_TAG>
- Update the version tag in
server-templates: https://github.com/iFixit/server-templates/blob/a13f1b273b42c6f61a57806bf38ad0202a1c6384/shared/scripts/launch-polyfill-service#L8
The official polyfill.io service maintained by the Financial Times team.
fvj | igeligel |
|---|
js-polyfill-docker is realeased under the MIT License.