-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
43 lines (34 loc) · 1.2 KB
/
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
#
# To build the docker images run
# docker build -t fluffy/rfc .
# Or get the docker images from with
# docker pull fluffy/rfc
# To build the drafts, run
# docker run --rm --mount type=bind,source="$(pwd)",destination=/data fluffy/rfc
# To debug docker run
# docker run -i -t --rm --mount type=bind,source="$(pwd)",destination=/data fluffy/rfc /bin/tcsh
# Or
# docker run -i -t --rm --mount type=bind,source="$(pwd)",destination=/data fluffy/rfc /bin/tcsh
# To Push docker images to repo
# docker login -u fluffy
# docker push fluffy/rfc
#
FROM ubuntu:latest
LABEL maintainer="[email protected]"
LABEL description="Docker to build RFC"
RUN apt -y update
RUN apt -y upgrade
RUN apt install -y tcsh
RUN apt install -y golang python git python3-pip
RUN pip3 install --upgrade pip
RUN pip3 install xml2rfc
RUN mkdir -p /tmp/go
ENV GOPATH /tmp/go
RUN git clone --branch=master https://github.com/miekg/mmark.git /tmp/go/src/github.com/miekg/mmark
RUN cd /tmp/go/src/github.com/miekg/mmark/ && go get && go build && cd mmark && go build && cp ./mmark /usr/bin/mmark
RUN rm -rf /tmp/go
RUN apt install -y nodejs npm
RUN npm i -g raml2html raml2html-markdown-theme
RUN mkdir -p /data
WORKDIR /data
CMD make -k