Skip to content

Commit 785ddea

Browse files
ray-train: drop serve port 8000 from EXPOSE (training image, no ray[serve])
1 parent 8dc976d commit 785ddea

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

docker/ray-train/Dockerfile.cuda

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ RUN chmod +x /usr/local/bin/deep_learning_container.py \
178178
&& echo 'source /usr/local/bin/bash_telemetry.sh' >>/etc/bashrc \
179179
&& echo 'source /usr/local/bin/bash_telemetry.sh' >>/root/.bashrc
180180

181-
# Ray ports: gcs (6379), dashboard (8265), client (10001), serve (8000).
182-
EXPOSE 6379 8265 10001 8000
181+
# Ray ports: gcs (6379), dashboard (8265), client (10001).
182+
# No serve port (8000): this is a training image; ray[serve] is intentionally excluded.
183+
EXPOSE 6379 8265 10001
183184

184185
WORKDIR /workspace
185186
CMD ["/bin/bash"]
@@ -207,7 +208,9 @@ RUN chmod +x /usr/local/bin/deep_learning_container.py \
207208
COPY scripts/docker/ray-train/dockerd_entrypoint.sh /usr/local/bin/dockerd_entrypoint.sh
208209
RUN chmod +x /usr/local/bin/dockerd_entrypoint.sh
209210

210-
EXPOSE 6379 8265 10001 8000
211+
# Ray ports: gcs (6379), dashboard (8265), client (10001).
212+
# No serve port (8000): this is a training image; ray[serve] is intentionally excluded.
213+
EXPOSE 6379 8265 10001
211214

212215
WORKDIR /workspace
213216
ENTRYPOINT ["/usr/local/bin/dockerd_entrypoint.sh"]

0 commit comments

Comments
 (0)