From 7c3cfe4aa0d28cbf38f142f2750d28febbcaaaa8 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 9 Mar 2020 19:01:48 +0100 Subject: [PATCH] update readme according to new Dockerfile --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1f4d6d5..77f2fe6 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,19 @@ go get -u git.xdrm.io/go/tiny-url-ex ``` -### 2. launch the server +### 2. launch in docker -``` -$ go run . +Build the image. +```bash +$ docker build -t tiny-url . ``` -Now you can play with it with any regular REST API client at `127.0.0.1:4242`. +Then you can run the container with : +```bash +$ docker run -p 127.0.0.1:8888:4242 tiny-url +``` + +You can now play with it with any regular REST API client at `127.0.0.1:8888`. ##### 1. Get an authentication token