Refactor Dockerfile to improve file copying; remove .dockerignore; update mkdocs.yml for mkdocstrings configuration; adjust documentation requirements.
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
# Exclude everything by default
|
||||
*
|
||||
# Then explicitly include only what we need
|
||||
|
||||
# Core application files
|
||||
!musicround/
|
||||
!migrations/
|
||||
!run_migration.py
|
||||
!run.py
|
||||
!requirements.txt
|
||||
!docker-entrypoint.sh
|
||||
!LICENSE
|
||||
!favicon.ico
|
||||
|
||||
# Exclude unnecessary files within included directories
|
||||
**/__pycache__/
|
||||
**/*.pyc
|
||||
**/*.pyo
|
||||
**/*.pyd
|
||||
**/.*
|
||||
musicround/mp3/
|
||||
+2
-2
@@ -18,7 +18,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
# The .dockerignore file ensures we only include what's specified
|
||||
COPY musicround/ ./musicround/
|
||||
COPY migrations/ ./migrations/
|
||||
COPY run_migration.py run.py docker-entrypoint.sh LICENSE favicon.ico ./
|
||||
COPY run_migration.py run.py docker-entrypoint.sh LICENSE favicon.ico .
|
||||
|
||||
# Make the entrypoint script executable
|
||||
RUN chmod +x docker-entrypoint.sh
|
||||
@@ -31,4 +31,4 @@ ENV PYTHONPATH=/app
|
||||
ENV FLASK_APP=run.py
|
||||
|
||||
# Use the entrypoint script
|
||||
ENTRYPOINT ["./docker-entrypoint.sh"]
|
||||
CMD ["./docker-entrypoint.sh"]
|
||||
@@ -2,6 +2,6 @@
|
||||
mkdocs>=1.4.0
|
||||
mkdocs-material>=9.0.0
|
||||
mkdocstrings>=0.21.0
|
||||
mkdocstrings-python>=1.0.0
|
||||
mkdocstrings-python>=1.0.0,<2.0.0
|
||||
pymdown-extensions>=9.0
|
||||
Pygments>=2.14.0
|
||||
+3
-1
@@ -23,9 +23,11 @@ theme:
|
||||
plugins:
|
||||
- search
|
||||
- mkdocstrings:
|
||||
default_handler: python
|
||||
handlers:
|
||||
python:
|
||||
docstring_style: google
|
||||
options:
|
||||
docstring_style: google
|
||||
|
||||
markdown_extensions:
|
||||
- admonition
|
||||
|
||||
Reference in New Issue
Block a user