gonito/Dockerfile

31 lines
859 B
Docker
Raw Normal View History

2020-03-11 23:34:37 +01:00
FROM fpco/stack-build:lts-12.26 AS gonito-build
MAINTAINER Filip Gralinski <filipg@ceti.pl>
WORKDIR /root/
2020-03-26 21:16:20 +01:00
RUN apt-get -y update && apt-get -y install libfcgi-dev && apt-get clean && rm -rf /var/lib/apt/lists/*
2020-03-11 23:34:37 +01:00
2021-01-27 13:29:55 +01:00
RUN git clone git://gonito.net/geval && cd geval && git reset --hard 660af24d8267b88e8264bba6afde2d9cfe574419
2021-01-17 20:38:34 +01:00
RUN git clone git://gonito.net/gonito && cd gonito && git reset --hard 9155f52315c4bb61d3054afac9fc45ec87a6e929
2020-03-11 23:34:37 +01:00
WORKDIR gonito
RUN stack install && rm -rf /root/.stack
FROM ubuntu:16.04 AS gonito-run
2020-03-26 21:16:20 +01:00
RUN apt-get -y update && apt-get -y install git libcairo2 libpq5 && apt-get clean && rm -rf /var/lib/apt/lists/*
2020-03-11 23:34:37 +01:00
RUN mkdir /gonito
WORKDIR /gonito
COPY --from=gonito-build /root/.local/bin/gonito-bin ./
COPY --from=gonito-build /root/gonito/static static
COPY --from=gonito-build /root/gonito/config config
CMD ./gonito-bin