From 1f4aac8dc22657299e8b6550cd0ae859a1a976fd Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (laptop)" Date: Sun, 1 Aug 2021 15:19:45 -0400 Subject: [PATCH] Doc: build the image section --- docker/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker/README.md b/docker/README.md index 797496f4..81f9e3ed 100644 --- a/docker/README.md +++ b/docker/README.md @@ -57,6 +57,20 @@ ## Update You can therefore pull the image with `docker pull 2fauth/2fauth` and restart the container to update it. +## Build the image + +You can build the image from the `master` branch with `docker` and `git` using: + +```sh +docker build -t 2fauth/2fauth https://github.com/Bubka/2FAuth.git +``` + +You can also build a specific commit (see [master's commits](https://github.com/Bubka/2FAuth/commits/master)) by appending the commit hash with `#` to the command. For example: + +```sh +docker build -t 2fauth/2fauth https://github.com/Bubka/2FAuth.git#fba9e29bd4e3bb697296bb0bde60ae869537528b +``` + ## Implementation details - The container is based on `debian:buster-slim`