jumpserver/Dockerfile-ee

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-08-08 09:38:36 +00:00
ARG VERSION=dev
2023-08-03 06:33:22 +00:00
2024-07-09 01:32:34 +00:00
FROM registry.fit2cloud.com/jumpserver/xpack:${VERSION} AS build-xpack
FROM jumpserver/core:${VERSION}-ce
COPY --from=build-xpack /opt/xpack /opt/jumpserver/apps/xpack
ARG TOOLS=" \
g++ \
curl \
iputils-ping \
netcat-openbsd \
nmap \
telnet \
vim \
wget"
ARG APT_MIRROR=http://deb.debian.org
2024-08-05 02:40:05 +00:00
RUN set -ex \
&& rm -f /etc/apt/apt.conf.d/docker-clean \
&& echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache \
&& sed -i "s@http://.*.debian.org@${APT_MIRROR}@g" /etc/apt/sources.list \
&& apt-get update \
&& apt-get -y install --no-install-recommends ${TOOLS} \
&& echo "no" | dpkg-reconfigure dash
2024-04-02 16:11:41 +00:00
2024-08-05 02:40:05 +00:00
WORKDIR /opt/jumpserver
2024-04-02 16:11:41 +00:00
ARG PIP_MIRROR=https://pypi.org/simple
2024-08-05 02:40:05 +00:00
COPY poetry.lock pyproject.toml ./
RUN set -ex \
&& . /opt/py3/bin/activate \
&& pip install poetry -i ${PIP_MIRROR} \
&& poetry install --only xpack
2024-05-13 10:21:51 +00:00