Skip to content

Commit

Permalink
Merge pull request #7 from toadharvard/main
Browse files Browse the repository at this point in the history
Support docker images
  • Loading branch information
NikitosKey authored Dec 21, 2024
2 parents 7edb9fd + d812cbe commit 85cfb92
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM python:3.13-slim

WORKDIR /app

RUN apt-get update && \
apt-get install -y --no-install-recommends \
sqlite3 && \
rm -rf /var/lib/apt/lists/*


COPY pyproject.toml poetry.lock* /app/


RUN pip install --no-cache-dir poetry


RUN poetry install --no-root

COPY . /app

CMD ["poetry", "run", "python", "-m", "bot.__main__"]
11 changes: 11 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
services:
bot:
build:
context: .
env_file:
- .env
volumes:
- database-data:/app/data

volumes:
database-data:

0 comments on commit 85cfb92

Please sign in to comment.