2016-02-19 116 views
1

所以我有以下Dockerfile:在泊塢窗容器編譯libsass

############################################################ 
# 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

然而,當我嘗試建立與泊塢窗我得到的以下錯誤:

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 

我不知道很多關於從源代碼編譯,所以任何解決方案,請帶我通過。你RUN cd libsass所以你需要

回答

1

泊塢窗不會改變迪爾斯到路徑你的命令,或使用WORKDIR指令