1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-08 04:04:42 +02:00
dockerfiles/open-vmdk/Dockerfile
2024-11-07 17:59:53 +08:00

27 lines
669 B
Docker

#
# Dockerfile for open-vmdk
#
FROM debian:12 AS build
MAINTAINER EasyPi Software Foundation
ARG OPEN_VMDK_VERSION=v0.3.10
ARG OPEN_VMDK_URL=https://github.com/vmware/open-vmdk/archive/refs/tags/$OPEN_VMDK_VERSION.tar.gz
RUN set -xe \
&& apt update -y \
&& apt install -y build-essential curl zlib1g-dev \
&& mkdir -p open-vmdk \
&& cd open-vmdk \
&& curl -sSL $OPEN_VMDK_URL | tar xz --strip 1 \
&& make \
&& make install \
&& cd .. \
&& apt remove -y build-essential curl zlib1g-dev \
&& rm -rf open-vmdk /var/lib/apt/lists/*
FROM debian:12
COPY --from=build /usr/bin/vmdk-convert /usr/local/bin/
COPY --from=build /usr/bin/ova-compose /usr/local/bin/