mirror of
https://github.com/google/nomulus
synced 2026-03-27 12:55:28 +00:00
/bin/bash comes with the base image, jetty:jdk-??. Use it in start.sh for safe scripting.
20 lines
675 B
Docker
20 lines
675 B
Docker
FROM jetty:12-jdk21
|
|
ADD --chown=jetty:jetty build/jetty-base /jetty-base
|
|
ADD --chown=jetty:jetty start.sh /
|
|
ADD --chown=jetty:jetty logging.properties /
|
|
|
|
USER root
|
|
|
|
# Create a directory, download and extract the Cloud Profiler agent, version locked to "cloud-profiler-java-agent_20241028_RC00.tar.gz".
|
|
RUN mkdir -p /opt/cprof && \
|
|
wget -q -O- https://storage.googleapis.com/cloud-profiler/java/cloud-profiler-java-agent_20241028_RC00.tar.gz\
|
|
| tar xzv -C /opt/cprof && \
|
|
chown -R jetty:jetty /opt/cprof
|
|
|
|
USER jetty
|
|
|
|
EXPOSE 8080
|
|
# jetty:12-jdk21 has bash. We can afford the extra 200M in image size over
|
|
# the -alpine flavor.
|
|
ENTRYPOINT ["/bin/bash", "/start.sh"]
|