Sign inSign up

blogdoang/squoosh-nginx

By blogdoang

•Updated almost 2 years ago

https://github.com/GoogleChromeLabs/squoosh docker image with nginx.

Image
Developer tools
0

304

blogdoang/squoosh-nginx repository overview

⁠Squoosh Docker Image

A lightweight Docker image for running Squoosh, a web app for compressing and optimizing images.

⁠Demo

squoosh⁠

⁠Features

  • Multi-stage build for a minimal production image.
  • Runs with Nginx for efficient static file serving.
  • Based on lightweight nginx:alpine for minimal size and performance.

⁠Usage

Pull the Image

docker pull blogdoang/squoosh-nginx

Run the Container

docker run -d -p 8080:80 --name squoosh blogdoang/squoosh-nginx

Access the app in your browser at: http://localhost:8080⁠

⁠Build from Source

If you'd like to build the image locally, follow these steps:

Clone the repository:

git clone https://github.com/GoogleChromeLabs/squoosh.git
cd squoosh

Build the Docker image:

docker build -t squoosh-app .

Run the container:

docker run -d -p 8080:80 --name squoosh squoosh-app

Open in a browser: http://localhost:8080⁠

⁠Image Details

  • Base Images:
    • Build Stage: node:20-bullseye
    • Production Stage: nginx:alpine
  • Exposed Port: 80
  • Size: Small and optimized for production use.

⁠About Squoosh

Squoosh is an open-source web app that allows you to compress and optimize images directly in your browser. Learn more about it on the official GitHub repository⁠.

Tag summary

Content type

Image

Digest

sha256:127d66ffc…

Size

35.1 MB

Last updated

almost 2 years ago

docker pull blogdoang/squoosh-nginx