# Digital Ocean Private Registry ## Build your docker - Create a `Dockerfile` in your project - Run the command ``` docker build . -t "my-app/main" ``` ## Create an a Private App Container and API key for CLI - SideMenu-> Container Registry -> Create private container registry - give a name <registy-name> - Go to API settings and create new personal access token with write access - Copy the auth token ## Intialise auth token with local system CLI - `doctl auth init -t <token>` - `doctl registry login` - `docker build -t <local-tag> .` - `docker tag <local-tag> registry.digitalcoean.com/<registy-name>/<local-tag>` - `docker push registry.digitalcoean.com/<registy-name>/<local-tag>` ## Go to App Platform - Launch your app - Use Digital Ocean Cotainer - Set the container registry - Next