|
|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
FROM oven/bun:1.1 as base
|
|
|
|
|
|
|
|
|
|
# Install basic debugging tools
|
|
|
|
|
RUN apt-get update && apt-get install -y curl netcat
|
|
|
|
|
RUN apt-get update && apt-get install -y curl netcat sqlite3
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
# Create data directory with proper permissions
|
|
|
|
|
@ -18,7 +18,7 @@ COPY index.ts ./
|
|
|
|
|
|
|
|
|
|
# More forgiving health check during debugging
|
|
|
|
|
HEALTHCHECK --start-period=30s --interval=30s --timeout=3s --retries=3 \
|
|
|
|
|
CMD curl -f http://localhost:${PORT:-3007}/health || exit 0
|
|
|
|
|
CMD curl -f http://localhost:${PORT:-3007}/health || exit 0
|
|
|
|
|
|
|
|
|
|
# Server runs on port from environment variable
|
|
|
|
|
EXPOSE ${PORT:-3007}
|
|
|
|
|
|