jumpserver/Dockerfile-ee

35 lines
1017 B
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"
2024-08-05 02:40:05 +00:00
RUN set -ex \
&& apt-get update \
&& apt-get -y install --no-install-recommends ${TOOLS} \
&& apt-get clean all \
&& rm -rf /var/lib/apt/lists/*
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-10-29 07:02:47 +00:00
ENV POETRY_PYPI_MIRROR_URL=${PIP_MIRROR}
2024-08-05 02:40:05 +00:00
COPY poetry.lock pyproject.toml ./
RUN set -ex \
&& . /opt/py3/bin/activate \
2024-10-29 07:02:47 +00:00
&& pip install poetry poetry-plugin-pypi-mirror -i ${PIP_MIRROR} \
2024-10-29 06:42:31 +00:00
&& poetry install --only xpack \
&& poetry cache clear pypi --all
2024-05-13 10:21:51 +00:00