mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2025-12-20 12:31:16 -05:00
feat(docker): set execute permission for entrypoint script and copy to local bin
This commit is contained in:
@@ -26,6 +26,10 @@ RUN mkdir -p /app/src/simpleguardhome && \
|
|||||||
# Copy source code, maintaining directory structure
|
# Copy source code, maintaining directory structure
|
||||||
COPY . /app/
|
COPY . /app/
|
||||||
|
|
||||||
|
# Set execute permission for entrypoint script
|
||||||
|
RUN chmod +x /app/docker-entrypoint.sh && \
|
||||||
|
cp /app/docker-entrypoint.sh /usr/local/bin/
|
||||||
|
|
||||||
# Set PYTHONPATH
|
# Set PYTHONPATH
|
||||||
ENV PYTHONPATH=/app/src
|
ENV PYTHONPATH=/app/src
|
||||||
|
|
||||||
@@ -51,9 +55,6 @@ RUN set -e && \
|
|||||||
python3 -c "import simpleguardhome; from simpleguardhome.main import app; print(f'Package found at: {simpleguardhome.__file__}')" && \
|
python3 -c "import simpleguardhome; from simpleguardhome.main import app; print(f'Package found at: {simpleguardhome.__file__}')" && \
|
||||||
echo "Package installation successful"
|
echo "Package installation successful"
|
||||||
|
|
||||||
# Copy and set up entrypoint script
|
|
||||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
|
||||||
|
|
||||||
# Create rules backup directory with proper permissions
|
# Create rules backup directory with proper permissions
|
||||||
RUN mkdir -p /app/rules_backup && \
|
RUN mkdir -p /app/rules_backup && \
|
||||||
chmod 777 /app/rules_backup
|
chmod 777 /app/rules_backup
|
||||||
|
|||||||
Reference in New Issue
Block a user