Skip to content

aglensmith/docker-stencil-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

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/aglensmith/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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published