Compare commits

...

3 Commits

Author SHA1 Message Date
Sukalpo Mitra 48897a04e5 Removed entrypoint as the /bin/jetty/run.sh command is not required 2024-01-27 12:42:06 +08:00
Sukalpo Mitra 88ae84339f Added tzdata reinstall so that dpkg-reconfigure works 2024-01-27 11:50:09 +08:00
Sukalpo Mitra 9da8e9654c Removed commneted lines and organised code into docker folder 2024-01-27 11:20:38 +08:00
7 changed files with 4 additions and 18 deletions

View File

@ -3,17 +3,13 @@ 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 etc /etc
COPY docker/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/*
@ -37,7 +33,7 @@ WORKDIR /opt/jetty
RUN chmod +x bin/jetty.sh
# Init configuration
COPY opt /opt
COPY docker/opt /opt
EXPOSE 8080
ENV JETTY_HOME /opt/jetty
ENV JAVA_OPTIONS -Xmx512m
@ -88,7 +84,4 @@ ENV JAVA_OPTIONS -Xmx1g
WORKDIR /app
# Set the default command to run when starting the container
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh"]
CMD ["java", "-jar", "/opt/jetty/start.jar"]

View File

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