mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-12-10 05:52:31 -05:00
wtv
This commit is contained in:
@@ -1,2 +1,37 @@
|
|||||||
|
# Dependencies
|
||||||
node_modules
|
node_modules
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
||||||
|
# Local development files - exclude uploaded content but keep placeholder images
|
||||||
|
media_files/*
|
||||||
|
!media_files/userlogos/
|
||||||
|
media_files/userlogos/*
|
||||||
|
!media_files/userlogos/*.jpg
|
||||||
|
logs
|
||||||
|
static_collected
|
||||||
|
|
||||||
|
# Version control
|
||||||
|
.git
|
||||||
|
.github
|
||||||
|
.gitignore
|
||||||
|
|
||||||
|
# Development/testing
|
||||||
|
.pytest_cache
|
||||||
|
.qodo
|
||||||
|
.claude
|
||||||
|
|
||||||
|
# Docker
|
||||||
|
.dockerignore
|
||||||
|
Dockerfile
|
||||||
|
docker-compose*.yml
|
||||||
|
.docker-backup
|
||||||
|
|
||||||
|
# Documentation (if you don't need it in the image)
|
||||||
|
docs
|
||||||
|
|
||||||
|
# Other
|
||||||
|
*.pyc
|
||||||
|
__pycache__
|
||||||
|
.env
|
||||||
|
.vscode
|
||||||
|
.idea
|
||||||
@@ -84,8 +84,8 @@ COPY --from=build-image /usr/local/bin/ffprobe /usr/local/bin/ffprobe
|
|||||||
COPY --from=build-image /usr/local/bin/qt-faststart /usr/local/bin/qt-faststart
|
COPY --from=build-image /usr/local/bin/qt-faststart /usr/local/bin/qt-faststart
|
||||||
COPY --from=build-image /home/mediacms.io/bento4 /home/mediacms.io/bento4
|
COPY --from=build-image /home/mediacms.io/bento4 /home/mediacms.io/bento4
|
||||||
|
|
||||||
# Copy application files
|
# Copy application files with correct ownership
|
||||||
COPY . /home/mediacms.io/mediacms
|
COPY --chown=www-data:www-data . /home/mediacms.io/mediacms
|
||||||
WORKDIR /home/mediacms.io/mediacms
|
WORKDIR /home/mediacms.io/mediacms
|
||||||
|
|
||||||
# Copy imagemagick policy for sprite thumbnail generation
|
# Copy imagemagick policy for sprite thumbnail generation
|
||||||
@@ -96,8 +96,7 @@ RUN cp config/local_settings.py cms/local_settings.py 2>/dev/null || true
|
|||||||
|
|
||||||
# Create www-data user directories and set permissions
|
# Create www-data user directories and set permissions
|
||||||
RUN mkdir -p /var/run/mediacms && \
|
RUN mkdir -p /var/run/mediacms && \
|
||||||
chown -R www-data:www-data /home/mediacms.io/mediacms && \
|
chown www-data:www-data /var/run/mediacms
|
||||||
chown -R www-data:www-data /var/run/mediacms
|
|
||||||
|
|
||||||
############ WEB IMAGE (Django/uWSGI) ############
|
############ WEB IMAGE (Django/uWSGI) ############
|
||||||
FROM base AS web
|
FROM base AS web
|
||||||
|
|||||||
Reference in New Issue
Block a user