Make Docker work
This commit is contained in:
parent
6870b7f554
commit
fb7594bfc2
|
@ -22,7 +22,7 @@
|
|||
# We use an initial docker container to build all of the runtime dependencies,
|
||||
# then transfer those dependencies to the container we're going to ship,
|
||||
# before throwing this one away
|
||||
ARG PYTHON_VERSION=3.10
|
||||
ARG PYTHON_VERSION=3.11
|
||||
FROM docker.io/python:${PYTHON_VERSION}-alpine as builder
|
||||
|
||||
##
|
||||
|
@ -63,7 +63,7 @@ COPY vetting_bot/__init__.py /src/vetting_bot/
|
|||
COPY README.md vetting-bot /src/
|
||||
|
||||
# Build the dependencies
|
||||
COPY setup.py /src/setup.py
|
||||
COPY pyproject.toml /src/pyproject.toml
|
||||
RUN pip install --prefix="/python-libs" --no-warn-script-location "/src/.[postgres]"
|
||||
|
||||
# Now copy the source code
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
# docker build -f docker/Dockerfile --build-arg LIBOLM_VERSION=3.2.10 .
|
||||
#
|
||||
|
||||
ARG PYTHON_VERSION=3.10
|
||||
ARG PYTHON_VERSION=3.11
|
||||
FROM docker.io/python:${PYTHON_VERSION}-alpine
|
||||
|
||||
##
|
||||
|
@ -56,7 +56,7 @@ RUN apk add --no-cache \
|
|||
RUN mkdir -p /src/vetting_bot
|
||||
COPY vetting_bot/__init__.py /src/vetting_bot/
|
||||
COPY README.md vetting-bot /src/
|
||||
COPY setup.py /src/setup.py
|
||||
COPY pyproject.toml /src/pyproject.toml
|
||||
RUN pip install -e "/src/.[postgres]"
|
||||
|
||||
# Now copy the source code
|
||||
|
|
|
@ -858,13 +858,13 @@ files = [
|
|||
|
||||
[[package]]
|
||||
name = "pylint"
|
||||
version = "3.2.3"
|
||||
version = "3.2.5"
|
||||
description = "python code static checker"
|
||||
optional = false
|
||||
python-versions = ">=3.8.0"
|
||||
files = [
|
||||
{file = "pylint-3.2.3-py3-none-any.whl", hash = "sha256:b3d7d2708a3e04b4679e02d99e72329a8b7ee8afb8d04110682278781f889fa8"},
|
||||
{file = "pylint-3.2.3.tar.gz", hash = "sha256:02f6c562b215582386068d52a30f520d84fdbcf2a95fc7e855b816060d048b60"},
|
||||
{file = "pylint-3.2.5-py3-none-any.whl", hash = "sha256:32cd6c042b5004b8e857d727708720c54a676d1e22917cf1a2df9b4d4868abd6"},
|
||||
{file = "pylint-3.2.5.tar.gz", hash = "sha256:e9b7171e242dcc6ebd0aaa7540481d1a72860748a0a7816b8fe6cf6c80a6fe7e"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
|
@ -927,13 +927,13 @@ cffi = ">=1.0.0"
|
|||
|
||||
[[package]]
|
||||
name = "python-socks"
|
||||
version = "2.4.4"
|
||||
version = "2.5.0"
|
||||
description = "Core proxy (SOCKS4, SOCKS5, HTTP tunneling) functionality for Python"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
files = [
|
||||
{file = "python-socks-2.4.4.tar.gz", hash = "sha256:e5a8e4f78203612c813946feacd87b98943965a04389fe221fa1e9ab263ad22e"},
|
||||
{file = "python_socks-2.4.4-py3-none-any.whl", hash = "sha256:fda465d3ef229119ee614eb85f2b7c0ad28be6dd40e0ef8dd317c49e8725e514"},
|
||||
{file = "python_socks-2.5.0-py3-none-any.whl", hash = "sha256:68b34379faac94bba3f9959f45cb9ed0b9a0dc65b509eb0799d9c47fb5a9af98"},
|
||||
{file = "python_socks-2.5.0.tar.gz", hash = "sha256:cc4ad990d67bd238e496afefe436af0247793bbe01d1d4a0d37a3b124ff0baa3"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
name = "vetting-bot"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["AF2C af2c@protonmail.com"]
|
||||
authors = ["AF2C <af2c@protonmail.com>"]
|
||||
license = "AGPL-3.0-or-later"
|
||||
readme = "README.md"
|
||||
package-mode = false
|
||||
package-mode = true
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.11"
|
||||
|
@ -14,7 +14,7 @@ peewee = "^3.17.5"
|
|||
coloredlogs = "^15.0.1"
|
||||
psycopg2 = "^2.8.5"
|
||||
markdown = "^3.1.1"
|
||||
pyyaml = "^6.0.0"
|
||||
pyyaml = "^6.0.1"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
black = "^24.4.2"
|
||||
|
|
Loading…
Reference in New Issue