Fix Dokploy deployment issues

- Remove obsolete version from docker-compose.yml
- Remove collectstatic from Dockerfile build process (will run after deployment)
- Static files will be collected during post-deployment setup
This commit is contained in:
thecyberlearn 2025-09-06 10:25:28 +05:30
parent 5ec22c0487
commit d5a9514bd3
2 changed files with 0 additions and 6 deletions

View File

@ -29,9 +29,6 @@ COPY . .
# Create logs directory
RUN mkdir -p logs
# Collect static files
RUN python manage.py collectstatic --noinput --settings=netcop_hub.settings
# Create non-root user for security
RUN adduser --disabled-password --gecos '' appuser && chown -R appuser:appuser /app
USER appuser

View File

@ -1,5 +1,3 @@
version: '3.8'
services:
web:
build: .
@ -29,7 +27,6 @@ services:
retries: 3
start_period: 40s
nginx:
image: nginx:alpine
ports: