diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 214d28d..3224e50 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1,3 @@ # These are supported funding model platforms -github: https://github.com/Zain-ul-din +buy_me_a_coffee: zainuldin diff --git a/Dockerfile b/Dockerfile index 0e414d3..564d423 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM node:20 +FROM node:20-alpine -# RUN apk add --no-cache git openssh openssh-keygen openssl +RUN apk add --no-cache git openssh openssh-keygen openssl # SSH setup @@ -15,9 +15,8 @@ RUN mkdir -p /root/.ssh && \ RUN echo "$SSH_KEY" > /root/.ssh/id_rsa && \ chmod 600 /root/.ssh/id_rsa - # RUN eval $(ssh-agent -s) -# RUN echo "$SSH_KEY" > /root/.ssh/id_rsa +RUN echo "$SSH_KEY" > /root/.ssh/id_rsa # RUN echo " IdentityFile ~/.ssh/id_rsa" >> /etc/ssh/ssh_config # RUN echo -e "Host github.com\n HostName github.com\n User git\n IdentityFile ~/.ssh/id_rsa" > /etc/ssh/ssh_config # RUN echo -e "Host github.com\n HostName github.com\n User git\n IdentityFile ~/.ssh/id_rsa" > ~/.ssh/config diff --git a/docs/deployment.md b/docs/deployment.md index ea029a1..08c307c 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -1,11 +1,12 @@ **Build Image:** +x ```bash -docker build -t my-node-app . --build-arg SSH_KEY="$(cat ~/.ssh/id_rsa)" --no-cache +docker build -t wa-bot-img . --build-arg SSH_KEY="$(cat ~/.ssh/id_rsa)" --no-cache ``` **Run the container:** ```bash -docker run -d --name wa-ai -p 3000:3000 my-node-app +docker run -d --name wa-ai-bot -p 3000:3000 wa-bot-img ```