Install openssh in the container and pass in keys

This commit is contained in:
Dustin Pianalto 2019-12-24 00:36:23 -09:00
parent fb9e34bf27
commit fe23620fe4
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ RUN apk update && \
# https://docs.djangoproject.com/en/dev/ref/django-admin/#dbshell # https://docs.djangoproject.com/en/dev/ref/django-admin/#dbshell
&& apk add postgresql-client \ && apk add postgresql-client \
# Install git # Install git
&& apk add git && apk add git openssh-client
RUN mkdir /code RUN mkdir /code
WORKDIR /code WORKDIR /code

View File

@ -9,4 +9,4 @@ cd /code || exit
git clone git@github.com:dustinpianalto/geeksbot_v2.git git clone git@github.com:dustinpianalto/geeksbot_v2.git
cd geeksbot_v2 || exit cd geeksbot_v2 || exit
docker build . -t geeksbot || exit docker build . -t geeksbot || exit
docker run -d -v /code/geeksbot_v2:/code --name geeksbot --restart always geeksbot:latest || exit docker run -d -v /code/geeksbot_v2:/code -v /root/.ssh:/root/.ssh:ro --name geeksbot --restart always geeksbot:latest || exit