-
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"]
-
Notifications
You must be signed in to change notification settings - Fork 0
wtkm11/stateserver
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
(job application coding challenge - 2018) [Python Falcon Shapely Docker]
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published