Fix: Create .env symlink in Dockerfile and add APP_KEY placeholder

- Create symlink from /app/code/.env to /app/data/.env in Dockerfile
- Add APP_KEY= placeholder to .env template
- Remove runtime symlink creation attempts
- This fixes key:generate error about missing .env file
This commit is contained in:
Your Name
2025-10-22 09:43:51 -06:00
parent 5ce6457d5f
commit 45f11105ab
2 changed files with 6 additions and 8 deletions

View File

@@ -57,7 +57,8 @@ RUN cd /app/code && \
# Remove storage directory and create symlink to /app/data/storage
RUN rm -rf /app/code/storage && \
ln -s /app/data/storage /app/code/storage
ln -s /app/data/storage /app/code/storage && \
ln -s /app/data/.env /app/code/.env
# Copy configuration files
COPY nginx.conf /etc/nginx/sites-available/default