Skip to content

Commit

Permalink
update deployment docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din committed Sep 7, 2024
1 parent 5f63bc7 commit ce7f511
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms

github: https://github.com/Zain-ul-din
buy_me_a_coffee: zainuldin
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions docs/deployment.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit ce7f511

Please sign in to comment.