Skip to content

Latest commit

 

History

History
79 lines (66 loc) · 2.83 KB

README.md

File metadata and controls

79 lines (66 loc) · 2.83 KB

Docker Pulls Docker Image Size (node) Docker Image Size (node-aws-dev)

Features:


Use:

Available on Docker registry: (auto-built on pnpm releases)

docker run -it --rm namesmt/images-alpine:node-dev

# For CIs, you should pin the version: 
docker run -it --rm namesmt/images-alpine:node-dev_pnpm8.10.5

WSL2 Alpine Quick Start:

Follow Yuka's instruction to install Alpine WSL2

Setting up node-dev (fnm included to manage node version):

wget https://raw.githubusercontent.com/NamesMT/images-alpine/main/node-dev.sh -O- | bash

Additional scripts:

Install fnm - Fast Node Manager, similar to nvm
wget https://raw.githubusercontent.com/NamesMT/images-alpine/main/scripts/install-fnm.sh -O- | sh
Install Docker
wget https://raw.githubusercontent.com/NamesMT/images-alpine/main/scripts/install-docker.sh -O- | sh

You can call ~/alpine.docker.service.sh to start the docker service,
And call ~/alpine.docker.service.sh stop to stop the docker service.

Install bun

Note: the script will remove current gcompat, glibc, glibc-bin if they exists.

wget https://raw.githubusercontent.com/NamesMT/images-alpine/main/scripts/install-bun.sh -O- | sh

Build:

export imageName=namesmt/images-alpine
export imageTag= # node | node-dev | node-aws ...
docker build -f "Dockerfile.${imageTag}" -t "${imageName}:${imageTag}" "."
docker push "${imageName}:${imageTag}"

Roadmap

  • Github Actions to automate build
    • builds will be automated with each pnpm release

Credits: