mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-02 10:47:19 +08:00
Update Dockerfile
This commit is contained in:
parent
a46a10bbf0
commit
8b8c75739c
11
Dockerfile
11
Dockerfile
@ -16,7 +16,6 @@ ARG DEBIAN_FRONTEND="noninteractive"
|
||||
ARG DEBCONF_NONINTERACTIVE_SEEN="true"
|
||||
|
||||
RUN set -eu && extra="" && \
|
||||
if [ "$TARGETPLATFORM" != "linux/amd64" ]; then extra="qemu-user"; fi && \
|
||||
apt-get update && \
|
||||
apt-get --no-install-recommends -y install \
|
||||
jq \
|
||||
@ -28,6 +27,10 @@ RUN set -eu && extra="" && \
|
||||
unzip \
|
||||
nginx \
|
||||
procps \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-msgpack \
|
||||
python3-pysodium \
|
||||
xz-utils \
|
||||
iptables \
|
||||
iproute2 \
|
||||
@ -40,9 +43,9 @@ RUN set -eu && extra="" && \
|
||||
iputils-ping \
|
||||
ca-certificates \
|
||||
netcat-openbsd \
|
||||
qemu-system-x86 \
|
||||
"$extra" && \
|
||||
qemu-system-x86 && \
|
||||
apt-get clean && \
|
||||
pip3 install --no-cache-dir --break-system-packages dissect.cstruct && \
|
||||
mkdir -p /etc/qemu && \
|
||||
echo "allow br0" > /etc/qemu/bridge.conf && \
|
||||
unlink /etc/nginx/sites-enabled/default && \
|
||||
@ -55,6 +58,8 @@ COPY --chmod=755 ./web /var/www/
|
||||
COPY --chmod=755 --from=builder /qemu-host.bin /run/host.bin
|
||||
COPY --chmod=744 ./web/conf/nginx.conf /etc/nginx/sites-enabled/web.conf
|
||||
|
||||
ADD https://raw.githubusercontent.com/sud0woodo/patology/refs/heads/main/patology.py /run/patology.py
|
||||
|
||||
VOLUME /storage
|
||||
EXPOSE 22 139 445 5000
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user