-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
37 lines (32 loc) · 972 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Build base container
FROM ubuntu:18.04
MAINTAINER Wayne Schneider <wayne@indexdata.com>
ENV DEBIAN_FRONTEND=noninteractive LANG=en_US.UTF-8 LC_ALL=C.UTF-8 LANGUAGE=en_US.UTF-8
RUN apt-get -q update && \
apt-get -qy upgrade && \
apt-get -qy dist-upgrade && \
apt-get -qy install \
perl \
build-essential \
cpanminus
# Install requirements from apt
RUN apt-get -qy install \
librdf-trine-perl \
librdf-query-perl \
libxml-libxslt-perl \
libmodule-build-perl \
libfile-share-perl
# Install requirements from CPAN
RUN cpanm MARC::Record MARC::File::XML
# Install and build bibframe2marc
COPY . /opt/biblio-bf2marc
WORKDIR /opt/biblio-bf2marc
RUN perl Build.PL && \
./Build clean && \
./Build && \
./Build test && \
./Build install
ENTRYPOINT [ "/usr/local/bin/bibframe2marc" ]
# Clean up container
RUN [ "apt-get", "clean" ]
RUN [ "rm", "-rf", "/var/lib/apt/lists/*", "/tmp/*", "/var/tmp/*" ]