summaryrefslogtreecommitdiff
path: root/release.Dockerfile
blob: ab1a159e41fbcfef71dba03ca494493770029326 (plain)
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
#
# This dockerfile demonstrates building ragel from release tarballs.
#

FROM ubuntu:focal AS build

ENV DEBIAN_FRONTEND="noninteractive"

RUN apt-get update && apt-get install -y \
	gpg g++ gcc make curl

RUN curl https://www.colm.net/files/thurston.asc | gpg --import -

WORKDIR /build
ENV COLM_VERSION=0.14.7
RUN curl -O https://www.colm.net/files/colm/colm-${COLM_VERSION}.tar.gz
RUN curl -O https://www.colm.net/files/colm/colm-${COLM_VERSION}.tar.gz.asc
RUN gpg --verify colm-${COLM_VERSION}.tar.gz.asc colm-${COLM_VERSION}.tar.gz
RUN tar -zxvf colm-${COLM_VERSION}.tar.gz
WORKDIR /build/colm-${COLM_VERSION}
RUN ./configure --prefix=/opt/colm/colm --disable-manual
RUN make
RUN make install

WORKDIR /build
ENV RAGEL_VERSION=7.0.4
RUN curl -O https://www.colm.net/files/ragel/ragel-${RAGEL_VERSION}.tar.gz 
RUN curl -O https://www.colm.net/files/ragel/ragel-${RAGEL_VERSION}.tar.gz.asc
RUN gpg --verify ragel-${RAGEL_VERSION}.tar.gz.asc ragel-${RAGEL_VERSION}.tar.gz
RUN tar -zxvf ragel-${RAGEL_VERSION}.tar.gz
WORKDIR /build/ragel-${RAGEL_VERSION}
RUN ./configure --prefix=/opt/colm/ragel --with-colm=/opt/colm/colm --disable-manual
RUN make
RUN make install