dvasdekis / docker-netlify-cli

A Docker image for netlify/cli

Home Page:https://github.com/users/williamjacksn/packages/container/package/netlify-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-netlify-cli

A Docker image for netlify/cli.

docker image pull ghcr.io/williamjacksn/netlify-cli

This image is also available on Docker Hub as williamjackson/netlify-cli.

Usage

In your Netlify user settings, create a personal access token. Set the environment variable NETLIFY_AUTH_TOKEN inside the container.

The default working directory in the container is /project, so mount your project directory into the container at that location.

Specify the Netlify CLI command after the image name.

docker container run -it \
    -e NETLIFY_AUTH_TOKEN=<personal_access_token> \
    -v /path/to/project:/project \
    williamjackson/netlify-cli \
    deploy

About

A Docker image for netlify/cli

https://github.com/users/williamjacksn/packages/container/package/netlify-cli


Languages

Language:Dockerfile 100.0%