Skip to content

Commit db73449

Browse files
authored
Update Dockerfile
1 parent 213c841 commit db73449

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
FROM coder/code-server:latest
22

3-
EXPOSE 8080
3+
COPY health-server.js /health-server.js
44

5-
HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=5 \
6-
CMD curl -f http://localhost:8080/ || exit 1
5+
EXPOSE 8080 3000
76

8-
CMD ["code-server", "--bind-addr", "0.0.0.0:8080", "--auth", "password"]
7+
CMD sh -c "node /health-server.js & code-server --bind-addr 0.0.0.0:8080 --auth password"

0 commit comments

Comments
 (0)