mirror of
https://github.com/sismics/docs.git
synced 2025-01-03 08:43:49 +01:00
Compare commits
3 Commits
a1c619571a
...
48897a04e5
Author | SHA1 | Date | |
---|---|---|---|
|
48897a04e5 | ||
|
88ae84339f | ||
|
9da8e9654c |
15
Dockerfile
15
Dockerfile
@ -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"]
|
||||
|
@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Your first command
|
||||
/bin/jetty.sh run &
|
||||
|
||||
# Your second command
|
||||
java -jar /opt/jetty/start.jar
|
Loading…
Reference in New Issue
Block a user