Docker

July 2, 2022 ยท View on GitHub

How to use this project with docker.


Building

How to compile the source code.


  • Clone the repository

    git clone https://github.com/tipsy/profile-summary-for-github.git
    
  • Navigate to the root folder

    cd profile-summary-for-github
    
  • Compile the source code

    docker build -t profile-summary-for-github
    


Running

How to start the compiled project.


Without Token

docker run                              \
    -it                                 \
    --rm                                \
    --name profile-summary-for-github   \
    -p 7070:7070 profile-summary-for-github

With Token

docker run                              \
    -it                                 \
    --rm                                \
    --name profile-summary-for-github   \
    -p 7070:7070                        \
    -e "API_TOKENS=<My Token A>,<My Token B>" profile-summary-for-github

Interface

You can access it at http://localhost:7070