Fix Docker build: copy src before pip install, update license format
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -8,14 +8,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
libpq-dev \
|
libpq-dev \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy dependency files
|
# Copy all project files needed for installation
|
||||||
COPY pyproject.toml ./
|
COPY pyproject.toml README.md ./
|
||||||
|
COPY src/ ./src/
|
||||||
|
|
||||||
# Install Python dependencies
|
# Install Python dependencies
|
||||||
RUN pip install --no-cache-dir -e .
|
RUN pip install --no-cache-dir .
|
||||||
|
|
||||||
# Copy application code
|
# Copy remaining files
|
||||||
COPY src/ ./src/
|
|
||||||
COPY migrations/ ./migrations/
|
COPY migrations/ ./migrations/
|
||||||
COPY alembic.ini ./
|
COPY alembic.ini ./
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ name = "guardden"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "A comprehensive Discord moderation bot with AI-powered content filtering"
|
description = "A comprehensive Discord moderation bot with AI-powered content filtering"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = {text = "MIT"}
|
license = "MIT"
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
authors = [
|
authors = [
|
||||||
{name = "GuardDen Team"}
|
{name = "GuardDen Team"}
|
||||||
@@ -15,7 +15,6 @@ authors = [
|
|||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 3 - Alpha",
|
"Development Status :: 3 - Alpha",
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
"License :: OSI Approved :: MIT License",
|
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user