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 213c841 commit db73449Copy full SHA for db73449
Dockerfile
@@ -1,8 +1,7 @@
1
FROM coder/code-server:latest
2
3
-EXPOSE 8080
+COPY health-server.js /health-server.js
4
5
-HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=5 \
6
- CMD curl -f http://localhost:8080/ || exit 1
+EXPOSE 8080 3000
7
8
-CMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "password"]
+CMD sh -c "node /health-server.js & code-server --bind-addr 0.0.0.0:8080 --auth password"
0 commit comments