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
|
# The .dockerignore file ensures we only include what's specified
|
||||||
COPY musicround/ ./musicround/
|
COPY musicround/ ./musicround/
|
||||||
COPY migrations/ ./migrations/
|
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
|
# Make the entrypoint script executable
|
||||||
RUN chmod +x docker-entrypoint.sh
|
RUN chmod +x docker-entrypoint.sh
|
||||||
@@ -31,4 +31,4 @@ ENV PYTHONPATH=/app
|
|||||||
ENV FLASK_APP=run.py
|
ENV FLASK_APP=run.py
|
||||||
|
|
||||||
# Use the entrypoint script
|
# Use the entrypoint script
|
||||||
ENTRYPOINT ["./docker-entrypoint.sh"]
|
CMD ["./docker-entrypoint.sh"]
|
||||||
@@ -2,6 +2,6 @@
|
|||||||
mkdocs>=1.4.0
|
mkdocs>=1.4.0
|
||||||
mkdocs-material>=9.0.0
|
mkdocs-material>=9.0.0
|
||||||
mkdocstrings>=0.21.0
|
mkdocstrings>=0.21.0
|
||||||
mkdocstrings-python>=1.0.0
|
mkdocstrings-python>=1.0.0,<2.0.0
|
||||||
pymdown-extensions>=9.0
|
pymdown-extensions>=9.0
|
||||||
Pygments>=2.14.0
|
Pygments>=2.14.0
|
||||||
+3
-1
@@ -23,9 +23,11 @@ theme:
|
|||||||
plugins:
|
plugins:
|
||||||
- search
|
- search
|
||||||
- mkdocstrings:
|
- mkdocstrings:
|
||||||
|
default_handler: python
|
||||||
handlers:
|
handlers:
|
||||||
python:
|
python:
|
||||||
docstring_style: google
|
options:
|
||||||
|
docstring_style: google
|
||||||
|
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- admonition
|
- admonition
|
||||||
|
|||||||
Reference in New Issue
Block a user