├── Dockerfile ├── LICENSE ├── README.md ├── package.json └── screenshots └── 1.png /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3 2 | 3 | MAINTAINER hellodk 4 | 5 | RUN set -ex && echo "http://mirrors.aliyun.com/alpine/edge/main/" > /etc/apk/repositories \ 6 | && echo "http://mirrors.aliyun.com/alpine/edge/community/" >> /etc/apk/repositories \ 7 | && apk update \ 8 | && apk add --no-cache --update nodejs npm \ 9 | && node -v && npm -v \ 10 | && npm config set registry https://registry.npm.taobao.org 11 | 12 | WORKDIR /app/squoosh/ 13 | 14 | # the source code is at https://github.com/GoogleChromeLabs/squoosh , I just edited the package.json file 15 | COPY squoosh /app/squoosh/ 16 | 17 | RUN cd /app/squoosh && npm install 18 | 19 | EXPOSE 8080 20 | 21 | ENTRYPOINT ["npm","run","serve"] 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Allen Hua 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # squoosh 2 | 3 | A https://github.com/GoogleChromeLabs/squoosh docker image. Support amd64, arm64 and arm v7 arch. Dockerfile open source at https://github.com/hellodk34/squoosh . If you appreciate for my work, you can leave a star on this GitHub repo, thank you as the same. 4 | 5 | Docker Hub address: https://hub.docker.com/r/dko0/squoosh 6 | 7 | ## Other description 8 | 9 | using docker buildx built 10 | 11 | ``` 12 | # docker buildx build -f ./Dockerfile -t NAMESPACE/squoosh:1.12.0 --platform=linux/arm64,linux/amd64,linux/arm/v7 . 13 | ``` 14 | 15 | My repo not contained all the source code, I just edited the package.json file and built this docker image. To review the source code, please step to [GoogleChromeLabs/squoosh](https://github.com/GoogleChromeLabs/squoosh) . Thanks for your using. 16 | 17 | ## Usage 18 | 19 | ### just docker run 20 | 21 | ``` 22 | # docker run -d --name squoosh \ 23 | --restart unless-stopped \ 24 | -p 7701:8080 \ 25 | dko0/squoosh:1.12.0 26 | ``` 27 | 28 | then, visit http://YOUR_IP:7701 and enjoy it! 29 | 30 | ### docker-compose 31 | 32 | ``` 33 | cat > squoosh-compose.yml <