Enhance project configuration by setting output to "standalone" in Next.js config files and updating .gitignore to include example environment files for better clarity and management.
Some checks failed
CI / Bot (Python) (push) Failing after 12s
CI / Dashboard (Next.js) (push) Failing after 9s

This commit is contained in:
TheOnlyMace
2026-07-21 17:35:08 +02:00
parent b4110c3d66
commit 41d5841d82
10 changed files with 262 additions and 0 deletions

19
bot/.dockerignore Normal file
View File

@@ -0,0 +1,19 @@
.env
.env.*
!.env.example
__pycache__
*.py[cod]
*.db
*.db-journal
.venv
venv
myenv
.git
.gitignore
*.md
LICENSE
logs
*.log
.pytest_cache
.mypy_cache
CodeX.py

29
bot/Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
# HexaHost Discord Bot + FastAPI dashboard backend
FROM python:3.12-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libffi-dev \
libjpeg62-turbo-dev \
zlib1g-dev \
libsodium-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
# Persist SQLite / JSON data outside the image
RUN mkdir -p /app/db /app/jsondb /app/logs
EXPOSE 8000
CMD ["python", "HexaHost.py"]