-
Navigate to the project root directory (the directory with the
Dockerfile) and build an image.$ docker build -t stateserver:latest . -
Start a container with stateserver running inside it. Expose port 8080.
$ docker run -d -p 8080:8080 stateserver -
Post a latitude and longitude to
/find out which state it is in.$ curl -d "longitude=-77.036133&latitude=40.513799" http://localhost:8080/ ["Pennsylvania"]
wtkm11/stateserver
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|