mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2025-12-23 22:11:13 -05:00
refactor(docker): update Dockerfile and entrypoint script for improved package management and application startup
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -13,11 +13,14 @@ RUN apt-get update && \
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the package directly to /app for simpler imports
|
||||
COPY src/simpleguardhome /app/simpleguardhome
|
||||
# Copy the source code
|
||||
COPY . .
|
||||
|
||||
# Create rules_backup directory with proper permissions
|
||||
RUN mkdir -p rules_backup && chmod 777 rules_backup
|
||||
# Clean any previous installations and install the package
|
||||
RUN pip uninstall -y simpleguardhome || true && \
|
||||
pip install -e . && \
|
||||
pip show simpleguardhome && \
|
||||
python3 -c "import simpleguardhome; print('Package found at:', simpleguardhome.__file__)"
|
||||
|
||||
# Set up health check
|
||||
COPY healthcheck.py /usr/local/bin/
|
||||
|
||||
Reference in New Issue
Block a user