fix: Change port to 80 for Easypanel compatibility

- Standard HTTP port for web servers
- Better compatibility with hosting platforms
This commit is contained in:
Kunthawat
2026-03-10 14:10:44 +07:00
parent 45169dd1d5
commit f04218b350

View File

@@ -33,14 +33,11 @@ COPY --from=builder /app/astro.config.mjs ./
# Create data directory for database
RUN mkdir -p /app/data
EXPOSE 4321
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD node -e "require('http').get('http://localhost:4321', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"
EXPOSE 80
ENV NODE_ENV=production
ENV ASTRO_DB_REMOTE_URL=file:/app/data/consent.db
ENV PORT=80
# Start Astro preview server
CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "4321"]
CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "80"]