首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Docker容器中编译libsass

在Docker容器中编译libsass
EN

Stack Overflow用户
提问于 2016-02-19 15:03:52
回答 1查看 805关注 0票数 1

因此,我有以下Dockerfile:

代码语言:javascript
复制
############################################################
# Based on Ubuntu
############################################################

FROM ubuntu:trusty
MAINTAINER OTIS WRIGHT

# Add extra software sources

RUN apt-get update -qq

# Libsass requirements.

RUN apt-get install -y curl git build-essential automake libtool

# Fetch sources

RUN git clone https://github.com/sass/libsass.git
RUN git clone https://github.com/sass/sassc.git libsass/sassc

# Create configure script

RUN cd libsass
RUN autoreconf --force --install
RUN cd ..

# Create custom makefiles for **shared library**, for more info read:
# 'Difference between static and shared libraries?' before installing libsass  http://stackoverflow.com/q/2649334/802365

RUN cd libsass
RUN autoreconf --force --install
RUN ./configure --disable-tests --enable-shared --prefix=/usr 
RUN cd ..

# Build the library

RUN make -C libsass -j5

# Install the library

RUN make -C libsass -j5 install

我正在尝试基于以下要点构建libsasshttps://gist.github.com/edouard-lopez/503d40a5c1a49cf8ae87

然而,当我尝试使用docker构建时,我得到了以下错误:

代码语言:javascript
复制
Step 11 : RUN git clone https://github.com/sass/libsass.git
 ---> Using cache
 ---> d1a4eef78fa5
Step 12 : RUN git clone https://github.com/sass/sassc.git libsass/sassc
 ---> Using cache
 ---> 435410579641
Step 13 : RUN cd libsass
 ---> Using cache
 ---> f0a4df503d85
Step 14 : RUN autoreconf --force --install
 ---> Running in a9b0d51d6ee3
autoreconf: 'configure.ac' or 'configure.in' is required
The command '/bin/sh -c autoreconf --force --install' returned a non-zero code: 1

我不太了解从源代码编译,所以任何解决方案,请带我通过。

EN

回答 1

Stack Overflow用户

发布于 2016-05-14 13:41:53

RUN cd libsass不会为您更改目录,因此您需要为命令添加路径或使用WORKDIR指令

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35499287

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档