1 Star 0 Fork 0

xuehu96/libredwg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile-dist 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
# 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" ]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuehu96/libredwg.git
[email protected]:xuehu96/libredwg.git
xuehu96
libredwg
libredwg
master

搜索帮助