mirror of
https://github.com/sismics/docs.git
synced 2024-11-16 11:17:57 +01:00
Removed commneted lines and organised code into docker folder
This commit is contained in:
parent
a1c619571a
commit
9da8e9654c
11
Dockerfile
11
Dockerfile
@ -3,17 +3,12 @@ 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 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 +32,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 +83,7 @@ ENV JAVA_OPTIONS -Xmx1g
|
||||
|
||||
WORKDIR /app
|
||||
# Set the default command to run when starting the container
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
COPY docker/entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
CMD ["/entrypoint.sh"]
|
||||
|
Loading…
Reference in New Issue
Block a user