Update Dockerfile

This commit is contained in:
AliVSCode 2026-01-07 21:36:15 +03:30 committed by GitHub
parent 213c841b3c
commit db73449f6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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