Skip to content

Build Image

Shawn Santhoshgeorge edited this page Feb 22, 2024 · 1 revision

As part of deploying the service, we create a docker image and push it to DockerHub

The image can be built either locally or via the recommended method of using Github Actions. To build it manually, follow the below steps:

  1. Create a requirements.txt which describes the specific packages used

    PIPENV_DONT_LOAD_ENV=1 pipenv requirements > requirements.txt
  2. Create the Docker Image, provided a specific tag using SemVer.

    docker build -t devds3/leaderboard:$(git rev-parse HEAD) .
  3. Test the Image

  4. Push Image to DockerHub

    docker push devds3/leaderboard:$(git rev-parse HEAD)
  5. Delete the requirements.txt file

    rm requirements.txt

Clone this wiki locally