-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
44 lines (32 loc) · 877 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
38
39
40
41
42
43
44
FROM almalinux:9
USER 0
RUN dnf update -y \
&& dnf install -y \
make \
gcc \
which \
libxml2-devel \
perl-core \
perl-Devel-Peek \
perl-HTML-Parser \
perl-libwww-perl \
wget \
ruby \
ruby-devel \
rubygems \
cpan \
&& dnf clean all
RUN cpan -i FreezeThaw
RUN gem install bundler
WORKDIR /headerdoc_build
RUN wget https://opensource.apple.com/tarballs/headerdoc/headerdoc-8.9.31.tar.gz -qO- | tar xzf -
WORKDIR headerdoc-headerdoc-8.9.31
WORKDIR xmlman
# This command finds the xml2man build command and appends the linking flags at the end. This is not done already, for some reason.
RUN sed -i 's/^xml2man: xml2man.o \(.*\)$/xml2man: xml2man.o \1\n\t$(CC) -o $@ $^ $(LDFLAGS)/' Makefile
WORKDIR ..
RUN make realinstall
COPY . /translator
WORKDIR /translator
RUN bundle install --system
CMD ./translate