Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:12

WORKDIR /app
COPY ./ /app/
COPY ./.data/ /app/.data/
COPY ./.env /app

RUN npm install -g gulp sass && \
rm package-lock.json && \
npm install && \
npm run build

EXPOSE 3000

CMD ["npm", "start"]
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3"

services:
botkit-cms:
container_name: bkc-container
build: .
ports:
- "3000:3000"
restart: always
19 changes: 19 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,22 @@ cms.loadScriptsFromFile(__dirname + '/scripts.json').catch(function(err) {
```

Note that you might need to modify the call to `cms.loadScriptsFromFile` depending on where you put the scripts.json file.

## Build/Deploy using docker

Create .env file from .env_sample <br />
Create ./.data/scripts.json from ./sample_scripts.json <br />
Configure the .env file <br />

```bash
PLATFORM=web
TOKENS=youwillneverguessmysecretbottoken
USERS=admin:123secret
```

- Run the app

```bash
docker-compose up -d
```
The app serves on port 3000