Skip to content

Commit b74b8b7

Browse files
ABANDON ASTRO PREVIEW: Use serve with --single flag
1 parent 7f0069e commit b74b8b7

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ ENV HOST=0.0.0.0
3030
# Build the application
3131
RUN npm run build
3232

33+
# Install serve globally for serving static files
34+
RUN npm install -g serve
35+
3336
# Expose port 8080
3437
EXPOSE 8080
3538

36-
# Use the start script instead
37-
CMD ["./start.sh"]
39+
# Use serve with SPA fallback - NO HOST RESTRICTIONS
40+
CMD ["serve", "-s", "dist", "-l", "8080", "--single"]
3841

0 commit comments

Comments
 (0)