Skip to content

Commit 327b68e

Browse files
committed
add docker, and release v1.0.0
1 parent c1d731a commit 327b68e

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM golang:1.15-alpine as builder
33
WORKDIR /app
44
COPY ./ .
55

6-
RUN go build
6+
RUN go build -o NeMo
77

88
FROM golang:1.15-alpine
99

@@ -12,12 +12,12 @@ WORKDIR /app
1212
RUN mkdir -p /app/.build/sessions/
1313
RUN mkdir -p /app/coral/
1414

15-
COPY --from=builder /app/nemo ./nemo
15+
COPY --from=builder /app/NeMo ./NeMo
1616

1717
COPY ./coral/ /app/coral/
1818

1919
RUN touch /app/.build/commands.json
2020
RUN touch /app/.build/schedules.json
2121
RUN touch /app/.build/greetings.json
2222

23-
ENTRYPOINT ["./nemo"]
23+
ENTRYPOINT ["./NeMo"]

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ after you have file `08123123123.gob` and `coral` directory with `basic.yml` ins
2828

2929
this will find the file `08123123123.gob` in the `SESSION_DIR` environment variable by default this will goes to current directory running file
3030

31+
# Run With Docker
32+
33+
you must prepare the `coral` directory include with yaml file and Whatsapp file session, after that mount volume in docker with example command like this
34+
35+
```
36+
docker run \
37+
--name NeMo -v ~/work/opensource/NeMo/coral:/app/coral \
38+
-v ~/work/opensource/NeMo/.sessions/08123123123.gob:/app/08123123123.gob \
39+
k1m0ch1/nemo 08123123123
40+
```
41+
3142
## Understand Basic Coral Configuration
3243

3344
Coral as in the house of the clown fish, is the configuration of the bot in order to specific give the operation to NeMo, you can see the example from the `basic.yml` or `example.yml` file

0 commit comments

Comments
 (0)