diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0c4c439 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..6e19ddd --- /dev/null +++ b/compose.yaml @@ -0,0 +1,8 @@ +services: + app: + container_name: matrix_chatgpt_bot + build: + context: . + dockerfile: ./Dockerfile + volumes: + - ./config.json:/app/config.json