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.
This commit is contained in:
19
bot/.dockerignore
Normal file
19
bot/.dockerignore
Normal 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
29
bot/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user