diff --git a/Dockerfile b/Dockerfile index c7c2a46cd..03ae199b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ FROM coder/code-server:latest -EXPOSE 8080 +COPY health-server.js /health-server.js -HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=5 \ - CMD curl -f http://localhost:8080/ || exit 1 +EXPOSE 8080 3000 -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"