Slim Starter Pack: Nginx 'Hello World'
Hello Nginx and static website developers!
Optimize and harden your containerized applications the easy way — with Slim.AI.
This Starter Kit will help you proactively remove vulnerabilities from your Nginx-style websites.
Simply replace the static website code here with your own, run it through Slim.AI's automated container optimization process, and you'll remove up vulnerabilities while also making it up to 11.83X smaller.
No more chasing down hard to patch vulnerability that your application isn't even using, and you can use any base image you want — even nginx:latest.
Get Started
To start a Nginx application application, you'll need the following libraries installed locally, or running in a dev environment link GitPod, Docker Environments, or Code Spaces.
nginx:latest
Sample Application
Our sample application is a simple static page serve that merely returns "Hello World" html document.
While this app is simple, it's a great starting point for more complex development.
Project structure
├── config │ └── nginx.config ├── content │ └── index.html ├── Dockerfile ├── README.md
Code sample
server { listen 80; server_name frontend.com; location / { root /usr/share/nginx/html; index index.html index.htm; } }
Replace this placeholder code with your own application code, and install any necessary dependencies, to create your own "slimmable" container.
Sample Dockerfile
Our Dockerfile builds off of the mcr.microsoft.com/dotnet/sdk:6.0 image and starts at 142MB. The slimming process reduces the size by 11.83X to just 12MB.