Skip to content

preecedavid/docker-netlify-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netlify CLI in Docker - The Tryvium Company LTD

Dockerhub Name Dockerhub Pulls

The netlify-cli package available as a Docker Image

Usage

You can use the image in multiple ways:

In other dockerfiles as a source image

FROM tryvium/netlify-cli
# ADD or COPY other files and run commands like build and deploy

# Remove or change the inherited entrypoint if you need it.
ENTRYPOINT [""]

As a standalone netlify CLI

$ docker run -e NETLIFY_AUTH_TOKEN="YOUR NETLIFY TOKEN" tryvium/netlify-cli # command and parameters ...
$ # for example
$ # docker run -e NETLIFY_AUTH_TOKEN="YOUR NETLIFY TOKEN" tryvium/netlify-cli deploy

The image is not tested with build and deploy commands, so we encourage you to open issues and PRs if you encounter any problem

In a CI environment

Here an example using Gitlab CI

Deploy to netlify:
  image: 
    name: tryvium/netlify-cli
    entrypoint: [""]
  environment: 
    NETLIFY_AUTH_TOKEN: "YOUR NETLIFY TOKEN"
  script: 
    - netlify -h

About

Docker image with an embedded netlify CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%