mirror of
https://github.com/Redume/Shirino.git
synced 2024-11-23 08:46:21 +03:00
setup docker (test)
This commit is contained in:
parent
c0e1698581
commit
ab18d1c265
3 changed files with 26 additions and 0 deletions
6
.dockerignore
Normal file
6
.dockerignore
Normal file
|
@ -0,0 +1,6 @@
|
|||
.git/
|
||||
.vscode/
|
||||
.idea/
|
||||
|
||||
.DS_Store
|
||||
__pycache__
|
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
9
docker-compose.yaml
Normal 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'
|
Loading…
Add table
Reference in a new issue