775 B
775 B
Guide
Build the docker image and run it locally. Or run the deno server directly:
Test the server locally
deno task start
Then open http://localhost:8000/reference in your browser.
Test an authenticated endpoint:
curl -H 'Authorization: Bearer hunter2' 127.0.0.1:8000/users/123
Update the Dockerfile with the latest SHA256 digests.
./update_dockerfile.sh hello-openapi
Build the docker image.
docker build -t hello-openapi .
Test the container image locally.
docker run -p 8000:8000 hello-openapi:latest
Stop it from another terminal tab.
docker stop $(docker ps -q)
Lock the updated image digests in the Dockerfile.
./lock_dockerfile.sh hello-openapi