-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (40 loc) · 1.5 KB
/
Copy pathDockerfile
File metadata and controls
46 lines (40 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
ARG VERSION=dev
FROM jumpserver/lina:${VERSION} AS lina
FROM jumpserver/luna:${VERSION} AS luna
FROM nginx:1.31-trixie
ARG TARGETARCH
ARG APT_MIRROR=http://deb.debian.org
ARG TOOLS=" \
ca-certificates \
wget \
logrotate \
"
RUN set -ex \
&& rm -f /etc/apt/apt.conf.d/docker-clean \
&& sed -i "s@http://.*.debian.org@${APT_MIRROR}@g" /etc/apt/sources.list.d/debian.sources\
&& apt-get update > /dev/null \
&& apt-get -y upgrade \
&& apt-get -y install --no-install-recommends ${TOOLS} \
&& wget https://github.com/jumpserver-dev/healthcheck/releases/latest/download/check_linux_${TARGETARCH}.deb \
&& dpkg -i check_linux_${TARGETARCH}.deb \
&& apt-get purge -y curl \
nginx-module-xslt \
nginx-module-njs \
libxml2 \
libxslt1.1 \
libgd3 \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -f check_linux_${TARGETARCH}.deb \
&& rm -f /etc/nginx/conf.d/default.conf
WORKDIR /opt
COPY --from=lina /opt/lina /opt/lina
COPY --from=luna /opt/luna /opt/luna
COPY versions.txt /opt/download/versions.txt
COPY client-version.txt /opt/download/client-version.txt
COPY nginx.conf /etc/nginx/nginx.conf
COPY includes /etc/nginx/includes
COPY example /etc/nginx/example
COPY default.conf /etc/nginx/conf.d/default.conf
COPY https_server.conf /etc/nginx/sites-enabled/https_server.conf
COPY init.sh /docker-entrypoint.d/40-init-config.sh