Compare commits

..

No commits in common. "48897a04e586f7f36fe60d16497cedd4a70600b0" and "a1c619571ab3e752584adff6b2a1743e8b5ad126" have entirely different histories.

7 changed files with 18 additions and 4 deletions

View File

@ -3,13 +3,17 @@ FROM ubuntu:22.04
# Run Debian in non interactive mode
ENV DEBIAN_FRONTEND noninteractive
# Install Sismics repository
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates software-properties-common curl gnupg tzdata
RUN curl -fsSL https://www.sismics.com/pgp | apt-key add -
# RUN add-apt-repository "deb [arch=amd64] https://nexus.sismics.com/repository/apt-bionic/ bionic main"
# Configure settings
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime
RUN apt-get update && apt-get -y -q install --reinstall tzdata
RUN dpkg-reconfigure -f noninteractive tzdata
COPY docker/etc /etc
COPY etc /etc
RUN echo "for f in \`ls /etc/bashrc.d/*\`; do . \$f; done;" >> ~/.bashrc
RUN apt-get -y -q install vim less procps unzip wget && \
rm -rf /var/lib/apt/lists/*
@ -33,7 +37,7 @@ WORKDIR /opt/jetty
RUN chmod +x bin/jetty.sh
# Init configuration
COPY docker/opt /opt
COPY opt /opt
EXPOSE 8080
ENV JETTY_HOME /opt/jetty
ENV JAVA_OPTIONS -Xmx512m
@ -84,4 +88,7 @@ ENV JAVA_OPTIONS -Xmx1g
WORKDIR /app
# Set the default command to run when starting the container
CMD ["java", "-jar", "/opt/jetty/start.jar"]
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh"]

7
entrypoint.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
# Your first command
/bin/jetty.sh run &
# Your second command
java -jar /opt/jetty/start.jar