Compare commits

...

2 Commits

Author SHA1 Message Date
lemoer
5d2d4ff560 Dockerfile: use python alpine and install dev libs
Otherwise, this doesn't seem to build on arm64
2024-12-29 01:39:45 +01:00
lemoer
625358ba55 docker-compose: map signal-cli-rest-api to port 8081
8080 is already used.
2024-12-29 01:39:17 +01:00
3 changed files with 8 additions and 3 deletions

View File

@ -1,9 +1,14 @@
# Basis-Image (kann je nach Python-Version angepasst werden)
FROM python:3.13-slim
FROM python:3.13-alpine
# Arbeitsverzeichnis erstellen
WORKDIR /app
RUN apk update && apk add \
python3-dev \
gcc \
libc-dev
# Requirements in den Container kopieren
COPY requirements.txt requirements.txt

View File

@ -48,7 +48,7 @@ docker restart lab-signal-bot-signal-cli-rest-api-1
From host, list signal groups:
```
python list_signal_groups.py --api-url http://localhost:8080/ -i
python list_signal_groups.py --api-url http://localhost:8081/ -i
```
Now, you can set the identifier of the group you want in the config.json:

View File

@ -5,7 +5,7 @@ services:
- MODE=json-rpc #supported modes: json-rpc, native, normal
#- AUTO_RECEIVE_SCHEDULE=0 22 * * * #enable this parameter on demand (see description below)
ports:
- "8080:8080" #map docker port 8080 to host port 8080.
- "8081:8080" #map docker port 8080 to host port 8081.
volumes:
- "./signal-cli-config:/home/.local/share/signal-cli"
restart: always