mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-06-30 13:56:17 +00:00
Test Poetry in docker
This commit is contained in:
parent
3ef74850a5
commit
b7f030826e
3 changed files with 1809 additions and 5 deletions
|
@ -5,12 +5,14 @@ RUN mkdir /app && mkdir /app/data
|
|||
WORKDIR /app
|
||||
|
||||
COPY ./lynxie /app
|
||||
COPY ./requirements.txt /app
|
||||
COPY ./poetry.lock /app
|
||||
COPY ./pyproject.toml /app
|
||||
|
||||
RUN apk update
|
||||
RUN apk --no-cache add python3 py3-pip
|
||||
RUN apk --no-cache add python3 py3-pip curl
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN python3 database.py
|
||||
RUN curl -sSL https://install.python-poetry.org | python3 -
|
||||
RUN poetry install
|
||||
RUN poetry run python3 database.py
|
||||
|
||||
CMD ["python3", "main.py"]
|
||||
CMD ["poetry", "run", "python3", "main.py"]
|
||||
|
|
1775
Bot/poetry.lock
generated
Normal file
1775
Bot/poetry.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
27
Bot/pyproject.toml
Normal file
27
Bot/pyproject.toml
Normal file
|
@ -0,0 +1,27 @@
|
|||
[tool.poetry]
|
||||
name = "lynxie"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["Fluffy <michal-gdula@protonmail.com>"]
|
||||
readme = ".github/README.md"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.11"
|
||||
discord = "^2.3.2"
|
||||
black = "^23.7.0"
|
||||
sqlalchemy = "^2.0.20"
|
||||
python-dotenv = "^1.0.0"
|
||||
discord-py = {extras = ["voice"], version = "^2.3.2"}
|
||||
requests = "^2.31.0"
|
||||
beautifulsoup4 = "^4.12.2"
|
||||
selenium = "^4.12.0"
|
||||
webdriver-manager = "^4.0.0"
|
||||
flask = "^2.3.3"
|
||||
yt-dlp = "^2023.7.6"
|
||||
pillow = "^10.0.0"
|
||||
opencv-python = "^4.8.0.76"
|
||||
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
Loading…
Add table
Add a link
Reference in a new issue