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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user