使用docker进行Perl安装

时间:2017-06-08 16:36:28

标签: docker

我正在尝试使用perl安装来构建docker镜像。但是面对make命令的问题。它说找不到makefile。 Dockerfile:

list1 = [{id:"1", field1:"field1val"},...]
list2 = [{id:"1", field2:"field2val"},...]

错误:

 mergeOfList1List2 = [{id:"1", field1:"field1val", field2:"field2val"},...]

任何人都可以帮我修复它。

1 个答案:

答案 0 :(得分:2)

正如README所说,只需运行make,但将目录更改为源代码的根目录(/shared/perl-5.22.1):

FROM amazonlinux
WORKDIR /shared
RUN yum -y install gcc
ADD http://www.cpan.org/src/5.0/perl-5.22.1.tar.gz /shared
RUN tar -xzf perl-5.22.1.tar.gz

WORKDIR /shared/perl-5.22.1
RUN ./Configure -des -Dprefix=/opt/perl-5.22.1/localperl

RUN make
RUN make test
RUN make install

自述文件:

INSTALLATION
============

If you're using a relatively modern operating system and want to
install this version of Perl locally, run the following commands:

  ./Configure -des -Dprefix=$HOME/localperl
  make test
  make install