This commit is contained in:
@@ -68,8 +68,14 @@ RUN cd /build/peikarband && \
|
||||
echo "Frontend export completed" && \
|
||||
if [ -d .web/node_modules/.bin ]; then \
|
||||
find .web/node_modules/.bin -type f -exec chmod +x {} \; && \
|
||||
find .web/node_modules/.bin -type l -exec chmod +x {} \; && \
|
||||
echo "✅ Set executable permissions for all .bin files (files and symlinks)"; \
|
||||
find .web/node_modules/.bin -type l | while read symlink; do \
|
||||
target=$(readlink -f "$symlink" 2>/dev/null || true); \
|
||||
if [ -n "$target" ] && [ -f "$target" ]; then \
|
||||
chmod +x "$target" 2>/dev/null || true; \
|
||||
fi; \
|
||||
chmod +x "$symlink" 2>/dev/null || true; \
|
||||
done && \
|
||||
echo "✅ Set executable permissions for all .bin files (files and symlinks) and their targets"; \
|
||||
fi
|
||||
|
||||
# Note: reflex export already builds and installs everything needed
|
||||
@@ -129,11 +135,18 @@ RUN mkdir -p /app/data /app/logs /app/uploaded_files
|
||||
|
||||
# Set proper permissions for application files
|
||||
# Explicitly set executable permissions for node_modules/.bin files (both files and symlinks)
|
||||
# Also fix permissions for symlink targets
|
||||
RUN if [ -d /app/peikarband/.web/node_modules/.bin ]; then \
|
||||
find /app/peikarband/.web/node_modules/.bin -type f -exec chmod +x {} \; && \
|
||||
find /app/peikarband/.web/node_modules/.bin -type l -exec chmod +x {} \; && \
|
||||
find /app/peikarband/.web/node_modules/.bin -type l | while read symlink; do \
|
||||
target=$(readlink -f "$symlink" 2>/dev/null || true); \
|
||||
if [ -n "$target" ] && [ -f "$target" ]; then \
|
||||
chmod +x "$target" 2>/dev/null || true; \
|
||||
fi; \
|
||||
chmod +x "$symlink" 2>/dev/null || true; \
|
||||
done && \
|
||||
ls -la /app/peikarband/.web/node_modules/.bin/ | head -20 && \
|
||||
echo "✅ Verified executable permissions for .bin files"; \
|
||||
echo "✅ Verified executable permissions for .bin files and symlink targets"; \
|
||||
fi && \
|
||||
chmod -R 777 /app/data /app/logs /app/uploaded_files
|
||||
|
||||
|
||||
Reference in New Issue
Block a user