An open API service indexing awesome lists of open source software.

https://github.com/yhagio/docker_ssh_example

How to install private repo in docker image using local ssh
https://github.com/yhagio/docker_ssh_example

docker docker-compose nodejs ssh

Last synced: about 2 months ago
JSON representation

How to install private repo in docker image using local ssh

Awesome Lists containing this project

README

          

# Docker, Docker-Compose, SSH

This repo is to show how to install private package using local SSH in your Docker image

```sh
cd compose

# build images using your local ssh keys
docker-compose -f docker-compose.install.yml build --build-arg KEY=\"$(cat ~/.ssh/id_rsa)\" --build-arg PUB=\"$(cat ~/.ssh/id_rsa.pub)\"

# build containers and run the app
docker-compose up
```