diff --git a/Dockerfile b/Dockerfile index b65f8cb..beedba3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,11 +11,11 @@ COPY src/ ./src/ COPY index.ts ./ # Health check -# HEALTHCHECK --interval=30s --timeout=3s \ -# CMD curl -f http://localhost:3007/health || exit 1 +HEALTHCHECK --interval=30s --timeout=3s \ + CMD curl -f http://localhost:${PORT:-3007}/health || exit 1 -# Server runs on port 3007 by default -EXPOSE 3007 +# Server runs on port from environment variable +EXPOSE ${PORT:-3007} # Start the server CMD ["bun", "run", "index.ts"]