risotto/docker/Dockerfile

30 lines
967 B
Docker
Raw Permalink Normal View History

2020-01-20 11:34:16 +01:00
FROM python:3.7
# Requirements
ARG TIRAMISU_REPO_URL=https://framagit.org/tiramisu/tiramisu.git
ARG RISOTTO_REPO_URL=https://forge.cadoles.com/Infra/risotto.git
ARG ROUGAIL_REPO_URL=https://forge.cadoles.com/Infra/rougail.git
RUN apt-get update && apt-get install -y \
vim \
curl \
git \
jq \
&& apt-get clean
RUN git clone --branch develop ${TIRAMISU_REPO_URL} /srv/src/tiramisu
2020-01-20 15:58:04 +01:00
RUN git clone --branch docker ${RISOTTO_REPO_URL} /srv/src/risotto
2020-01-20 11:34:16 +01:00
RUN git clone --branch master ${ROUGAIL_REPO_URL} /srv/src/rougail
RUN ln -s /srv/src/tiramisu/tiramisu /usr/local/lib/python3.7
RUN ln -s /srv/src/rougail/src/rougail /usr/local/lib/python3.7
RUN ln -s /srv/src/risotto/src/risotto /usr/local/lib/python3.7
RUN pip install Cheetah3
2020-01-20 15:58:04 +01:00
RUN cd /srv/src/risotto && pip install -r requirements.txt
2020-01-20 11:34:16 +01:00
# Installation
2020-01-20 15:58:04 +01:00
RUN cp -r /srv/src/risotto/messages/ /usr/local/lib/
2020-01-20 11:34:16 +01:00
RUN mkdir -p /var/cache/risotto/servermodel
2020-01-20 15:58:04 +01:00
RUN mkdir -p /var/cache/risotto/database