diff --git a/Dockerfile b/Dockerfile index 2291aef..252e022 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,7 +70,7 @@ USER bakerydemo ARG SSH_PRIVATE_KEY RUN mkdir $HOME/.ssh RUN if [ $SSH_PRIVATE_KEY ]; then echo $SSH_PRIVATE_KEY > $HOME/.ssh/id_rsa; else echo "Private key not set"; fi -RUN cp /app/sshconfig $HOME/.ssh/config +COPY ./etc/sshconfig $HOME/.ssh/ # Run the WSGI server. It reads GUNICORN_CMD_ARGS, PORT and WEB_CONCURRENCY # environment variable hence we don't specify a lot options below. diff --git a/etc/sshconfig b/etc/sshconfig new file mode 100644 index 0000000..990a43d --- /dev/null +++ b/etc/sshconfig @@ -0,0 +1,3 @@ +Host * + StrictHostKeyChecking no + UserKnownHostsFile=/dev/null