setup docker (test)

This commit is contained in:
Данил 2024-09-28 15:16:52 +03:00
parent c0e1698581
commit ab18d1c265
3 changed files with 26 additions and 0 deletions

6
.dockerignore Normal file
View file

@ -0,0 +1,6 @@
.git/
.vscode/
.idea/
.DS_Store
__pycache__

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM python:3.12
WORKDIR /shirino
COPY ./requirements.txt .
RUN pip3 install --no-cache-dir --upgrade -r ./requirements.txt
COPY ./ /shirino/
CMD ["python", "main.py"]

9
docker-compose.yaml Normal file
View file

@ -0,0 +1,9 @@
services:
shirino:
image: ghcr.io/shirino/shirino:latest
ports:
- '8080:8080'
restart: unless-stopped
volumes:
- '.config.yaml:/config.yaml'
- '.config_sample.yaml:/config_sample.yaml'