Explorar o código

Fix start.sh path to work with volume mount

- Change CMD from /start.sh to /app/start.sh
- When .:/app is mounted, the host's start.sh is now used
- Removes need to rebuild image for script changes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris hai 3 semanas
pai
achega
eade3249c0
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  1. 3 4
      Dockerfile

+ 3 - 4
Dockerfile

@@ -61,11 +61,10 @@ COPY . .
 # Copy built frontend from Stage 1
 COPY --from=frontend-builder /app/static/dist ./static/dist
 
-# Copy and set up startup script
-COPY start.sh /start.sh
-RUN chmod +x /start.sh
+# Ensure startup script is executable
+RUN chmod +x /app/start.sh
 
 # Expose ports: 80 for frontend (nginx), 8080 for backend API
 EXPOSE 80 8080
 
-CMD ["/start.sh"]
+CMD ["/app/start.sh"]