diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..c7c2a46cd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM coder/code-server:latest + +EXPOSE 8080 + +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"]