Skip to content

Docker file for BigCommerce's Stencil CLI (node 15)

Notifications You must be signed in to change notification settings

DJB31st/docker-stencil-cli

 
 

Repository files navigation

docker-stencil-cli

An unofficial dockerfile for BigCommerce's Stencil CLI.

Build

# build docker image
docker build -t stencil https://raw.githubusercontent.com/DJB31st/docker-stencil-cli/master/dockerfile.v2

Run

OSX and Linux:

# stencil init
docker run -it -v $(pwd):/theme -p3000:3000 stencil init

# stencil start
docker run -it -v $(pwd):/theme -p3000:3000 stencil start

Windows (bash):

# stencil init
docker run -it -v /$(PWD):/theme -p3000:3000 stencil init

# stencil start
docker run -it -v /$(PWD):/theme -p3000:3000 stencil start

.bashrc entry

Open ~/.bashrc in your preferred editor and add an alias for the docker command.

OSX and Linux:

alias stencil="docker run -it -v $(pwd):/theme -p3000:3000 stencil"

Windows:

alias stencil="docker run -it -v /$(PWD):/theme -p3000:3000 stencil"

Reload your ~/.bashrc.

source ~/.bashrc

Now you can use the stencil alias to run the docker command.

stencil start

About

Docker file for BigCommerce's Stencil CLI (node 15)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published