Update Dockerfile

This commit is contained in:
AliVSCode 2026-01-07 21:54:49 +03:30 committed by GitHub
parent 74764a8a58
commit 2459983af0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"]