mirror of
https://github.com/hibobmaster/matrix_chatgpt_bot.git
synced 2024-10-01 05:35:36 -04:00
Support docker deployment
This commit is contained in:
parent
c87a4d3476
commit
3a57f4bddd
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM python:3.10-alpine
|
||||||
|
|
||||||
|
RUN sed -i 's|v3\.\d*|edge|' /etc/apk/repositories
|
||||||
|
|
||||||
|
RUN apk add olm-dev gcc musl-dev
|
||||||
|
|
||||||
|
COPY ./ /app
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
ENTRYPOINT python main.py
|
8
compose.yaml
Normal file
8
compose.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
services:
|
||||||
|
app:
|
||||||
|
container_name: matrix_chatgpt_bot
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
volumes:
|
||||||
|
- ./config.json:/app/config.json
|
Loading…
Reference in New Issue
Block a user