Dockerfile 430 Bytes
Newer Older
Alexandre Bulté's avatar
Alexandre Bulté committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3

EXPOSE 5600

WORKDIR /srv

RUN git clone https://git.opendatafrance.net/validata/validata-core.git
RUN cd validata-core && pip install -e .
RUN git clone https://git.opendatafrance.net/validata/validata-api.git
RUN cd validata-api && pip install -e .

ENV FLASK_APP=validata_api/app.py
ENV FLASK_ENV=development
ENV FLASK_RUN_PORT=5600

WORKDIR validata-api/
CMD ["flask", "run", "--with-threads", "-h", "0.0.0.0"]