From 2459983af093b19332ae9d3922cd17d71969fa87 Mon Sep 17 00:00:00 2001 From: AliVSCode Date: Wed, 7 Jan 2026 21:54:49 +0330 Subject: [PATCH] Update Dockerfile --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73ae271cf..c7c2a46cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ FROM coder/code-server:latest -ENV PORT=8080 EXPOSE 8080 -CMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "none"] +HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=5 \ + CMD curl -f http://localhost:8080/ || exit 1 + +CMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "password"]