Skip to content

Instantly share code, notes, and snippets.

View Hrishiktech's full-sized avatar

Hrishikesh Meher Hrishiktech

View GitHub Profile
@Hrishiktech
Hrishiktech / nginx.conf
Created September 2, 2022 10:32 — forked from scalablescripts/nginx.conf
Docker nginx
worker_processes 1;
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name localhost;
Commands
------------
1. Build Docker Image
docker build -t test .
2. Run container /w image
docker run -d --publish 8888:5000 test
3. Login to ECR
aws ecr get-login-password --region REGIONHERE!!!! | docker login --username AWS --password-stdin ACCOUNTIDHERE!!!!.dkr.ecr.REGIONHERE!!!.amazonaws.com