代码拉取完成,页面将自动刷新
# podman/docker build -t libredwg-dist -f Dockerfile-dist .
############################
# STEP 1 build package from a local dist-xz (i.e. make check-docker)
############################
FROM python:3.7.7-buster AS extracting
ARG distdir
# libxml2-dev is broken so we need to compile it by our own
ARG LIBXML2VER=2.9.9
RUN apt-get update && \
apt-get install -y --no-install-recommends git autoconf libtool swig texinfo \
build-essential gcc libxml2 libxml2-dev python3-libxml2 libpcre2-dev libpcre2-32-0 \
wget libperl-dev && \
mkdir libxmlInstall && cd libxmlInstall && \
wget ftp://xmlsoft.org/libxml2/libxml2-$LIBXML2VER.tar.gz && \
tar xf libxml2-$LIBXML2VER.tar.gz && \
cd libxml2-$LIBXML2VER/ && \
./configure && \
make && \
make install && \
cd /libxmlInstall && \
rm -rf gg libxml2-$LIBXML2VER.tar.gz libxml2-$LIBXML2VER
WORKDIR /app
COPY ${distdir}.tar.xz .
RUN tar xfJ ${distdir}.tar.xz && \
cd ${distdir} && \
./configure --enable-release && \
make && \
mkdir -p /app/libredwg-install && \
make check DOCKER=1 DESTDIR="/app/libredwg-install" && \
make install DESTDIR="/app/libredwg-install"
############################
# STEP 2 install into stable-slim
############################
FROM debian:stable-slim
COPY --from=extracting /app/libredwg-install/usr/local/bin/* /usr/local/bin/
COPY --from=extracting /app/libredwg-install/usr/local/include/* /usr/local/include/
COPY --from=extracting /app/libredwg-install/usr/local/lib/* /usr/local/lib/
COPY --from=extracting /app/libredwg-install/usr/local/share/* /usr/local/share/
RUN ldconfig
CMD [ "sh" ]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。