Tidying up for future changes

- Changelog started. Existing version 0.0.2
- Add section for application wide TODOs. Each moved to changelog when done
- Adjusted .gitignore and .dockerignore
- Updated image base to python:3.10-slim-trixie. Cleaned up image build.
- Added default environment values to compose file
- Cleaned up pyproject.toml.
- Deleted unused gui-tk.py.
This commit is contained in:
Doc
2025-10-03 16:00:52 -04:00
parent 71e933be72
commit a8b254fa8b
9 changed files with 82 additions and 73 deletions

View File

@@ -1,24 +1,26 @@
# Dockerfile
FROM python:3.10-slim
FROM python:3.10-slim-trixie
# Set working directory
WORKDIR /app
# Copy requirements file and install dependencies
# COPY requirements.txt .
# Apply security updates
RUN apt update && apt-get install -y --only-upgrade $(apt-get --just-print upgrade | awk 'tolower($4) ~ /.*security.*/ || tolower($5) ~ /.*security.*/ {print $2}' | sort | uniq) && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir hatch
# Copy the entire project to the working directory
COPY ./src /app/src
COPY ./README.md /app/README.md
COPY ./LICENSE /app/LICENSE
COPY ./pyproject.toml /app/pyproject.toml
COPY ./scripts /app/scripts
#COPY ./tests /app/tests
COPY ./docs /app/docs
# Copy first part of project that needs to be rebuilt
# if it changes
COPY ./pyproject.toml ./src /app/
# Expose the port the app runs on (adjust based on your app's settings)
# Pre-installed files needed at runtime
RUN hatch env create default -- --no-cache-dir
# Copy the rest of the project; readme and license
COPY ./README.md ./LICENSE /app/
# Expose the default port the app runs on
EXPOSE 5232
# Command to run the app
CMD ["hatch","run","subdomain_server","--port","5232","--config-path","/app/config/config.yaml","--debug"]
CMD ["hatch","run","subdomain_server","--config-path","/app/config/config.yaml"]