-
Notifications
You must be signed in to change notification settings - Fork 1
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:
-
Create a
requirements.txtwhich describes the specific packages usedPIPENV_DONT_LOAD_ENV=1 pipenv requirements > requirements.txt -
Create the Docker Image, provided a specific tag using SemVer.
docker build -t devds3/leaderboard:$(git rev-parse HEAD) .
-
Test the Image
-
Push Image to DockerHub
docker push devds3/leaderboard:$(git rev-parse HEAD) -
Delete the
requirements.txtfilerm requirements.txt