Skip to content

Commit e24c90f

Browse files
authored
Use bash in the Nomulus image (#2959)
/bin/bash comes with the base image, jetty:jdk-??. Use it in start.sh for safe scripting.
1 parent 8ff4d7d commit e24c90f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

jetty/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ RUN mkdir -p /opt/cprof && \
1414
USER jetty
1515

1616
EXPOSE 8080
17-
ENTRYPOINT ["/bin/sh", "/start.sh"]
17+
# jetty:12-jdk21 has bash. We can afford the extra 200M in image size over
18+
# the -alpine flavor.
19+
ENTRYPOINT ["/bin/bash", "/start.sh"]

jetty/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
# Copyright 2024 The Nomulus Authors. All Rights Reserved.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)