Loading...
This is a practice code to, try out deno to build a backend api and consume it in a Front-end app.
deno run --allow-net --alow-read --lock-write --lock=lock.json mod.ts
docker build Path -t TagName
eg docker build . -t TagName/space-api ---> we are passing path as current directory and docker will find the docker file.
docker run -it -p PORTINIMAGE:PORTOUTSIDE IMAGENAME -it --> gives access to running container
docker push IMAGE eg docker push username/tagname --- here username/tagname is image tagname
ssh -i "key-pair" ec2Instance -i flag indicates the identity file