We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b29aabd commit 49bcd0cCopy full SHA for 49bcd0c
Dockerfile
@@ -20,8 +20,6 @@ EXPOSE 4141
20
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
21
CMD wget --spider -q http://localhost:4141/ || exit 1
22
23
-ARG GH_TOKEN
24
-ENV GH_TOKEN=$GH_TOKEN
25
-
26
-ENTRYPOINT ["bun", "run", "dist/main.js"]
27
-CMD ["start", "-g", "$GH_TOKEN"]
+COPY entrypoint.sh /entrypoint.sh
+RUN chmod +x /entrypoint.sh
+ENTRYPOINT ["/entrypoint.sh"]
entrypoint.sh
@@ -0,0 +1,9 @@
1
+#!/bin/sh
2
+if [ "$1" = "--auth" ]; then
3
+ # Run auth command
4
+ exec bun run dist/main.js auth
5
+else
6
+ # Default command
7
+ exec bun run dist/main.js start -g "$GH_TOKEN" "$@"
8
+fi
9
+
0 commit comments