Support docker deployment
This commit is contained in:
parent
c87a4d3476
commit
3a57f4bddd
2 changed files with 21 additions and 0 deletions
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 a new issue