Shopify-CLI tool as a docker image.
1.9K
Shopify CLI is a command-line interface tool that helps you build Shopify apps and themes. It quickly generates Node.js, Ruby on Rails, and PHP apps, app extensions, and Shopify themes. You can also use it to automate many common development tasks.
Theme Kit is a cross-platform command line tool that you can use to build Shopify themes.
docker run --rm -p 3456:3456 -v local_folder:/shopify hieuhidro/shopify:cli-2.33 login
version: '2.2'
services:
shopify:
image: hieuhidro/shopify:cli-2.33
volumes:
- ./${THEME_FOLDER}:/shopify
- ./.config/${THEME_FOLDER}:/root/.config
- ./.cache/${THEME_FOLDER}:/root/.cache
- ./.bundle/${THEME_FOLDER}:/root/.bundle
- ./.ngrok/${THEME_FOLDER}:/root/.ngrok
environment:
# For shopify v3 only
- SHOPIFY_CLI_NO_ANALYTICS=[1|0]
- SHOPIFY_CLI_THEME_TOKEN=[Your theme password (https://apps.shopify.com/theme-access)]
- SHOPIFY_CLI_TTY=0
- SHOPIFY_CLI_DEVICE_AUTH=[1|0]
- SHOPIFY_FLAG_STORE=[Your Store URL]
# For nginx-proxy
- VIRTUAL_HOST=local-domain
- VIRTUAL_PORT=9292
- SERVER_HOST_IP=[Host IP:0.0.0.0]
- CERT_NAME=default
- HTTPS_METHOD=[noredirect|redirect]
# For nginx-proxy
ports:
- '3456:3456'
- '9292:9292'
- '8081:8081'
networks:
proxy:
external: true
# For nginx-proxy
docker-compose run --rm --service-ports [shopify] help
docker-compose run --rm --service-ports shopify theme dev
docker run --rm -it hieuhidro/shopify:cli-3.30 bash
or
docker-compose run --rm --service-ports shopify bash
Running the shopify theme development under nginx-proxy
Content type
Image
Digest
sha256:1964148aa…
Size
273.4 MB
Last updated
over 1 year ago
docker pull hieuhidro/shopify