mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2025-12-19 20:11:14 -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 . /app/
|
||||
|
||||
# Set execute permission for entrypoint script
|
||||
RUN chmod +x /app/docker-entrypoint.sh && \
|
||||
cp /app/docker-entrypoint.sh /usr/local/bin/
|
||||
|
||||
# Set PYTHONPATH
|
||||
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__}')" && \
|
||||
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
|
||||
RUN mkdir -p /app/rules_backup && \
|
||||
chmod 777 /app/rules_backup
|
||||
|
||||
Reference in New Issue
Block a user