https://github.com/samouri/amp-toolbox-docker-optimizer
The AMP Optimizer living in a docker container
https://github.com/samouri/amp-toolbox-docker-optimizer
Last synced: about 2 months ago
JSON representation
The AMP Optimizer living in a docker container
- Host: GitHub
- URL: https://github.com/samouri/amp-toolbox-docker-optimizer
- Owner: samouri
- License: apache-2.0
- Created: 2020-08-06T15:39:45.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-17T22:26:36.000Z (almost 6 years ago)
- Last Synced: 2025-06-08T05:09:49.875Z (about 1 year ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AMP Optimizer Docker Container
The AMP Optimizer Container is a dockerized version of the [AMP Optimizer](https://github.com/ampproject/amp-toolbox/tree/master/packages/optimizer), a tool for improving the performance of AMP HTML.
## Usage
This container is published to DockerHub under the name *TODO*.
- The containers listens at port 3000 for `POST` requests.
- It expects the request `body` to be HTML, which is directly fed to the optimizer.
- It will respond with optimized HTML.
## Setting options via environment variables.
You can pass customization options to the optimizer via environment variables. See all the options listed in the AMP Optimizer [docs](https://github.com/ampproject/amp-toolbox/tree/master/packages/optimizer#options).
All option names are transformed into SCREAMING_SNAKE_CASE. For example, `autoAddMandatoryTags` --> `AUTO_ADD_MANDATORY_TAGS`.