Dockerfile 421 Bytes
Newer Older
Alexandre Bulté's avatar
Alexandre Bulté committed
1
2
3
4
5
6
FROM python:3

EXPOSE 5600

WORKDIR /srv

Alexandre Bulté's avatar
Alexandre Bulté committed
7
8
ARG VALIDATA_CORE_REPO=git+https://git.opendatafrance.net/validata/validata-core.git
ARG VALIDATA_API_REPO=git+https://git.opendatafrance.net/validata/validata-api.git
Alexandre Bulté's avatar
Alexandre Bulté committed
9

Alexandre Bulté's avatar
Alexandre Bulté committed
10
11
12
13
RUN pip install $VALIDATA_CORE_REPO
RUN pip install $VALIDATA_API_REPO

ENV FLASK_APP=validata_api.app
Alexandre Bulté's avatar
Alexandre Bulté committed
14
15
16
17
ENV FLASK_ENV=development
ENV FLASK_RUN_PORT=5600

CMD ["flask", "run", "--with-threads", "-h", "0.0.0.0"]