-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
18 lines (15 loc) · 852 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:2.7-slim-jessie
RUN apt-get update && apt-get install -y libsodium-dev git libevent-dev libzmq-dev libffi-dev libssl-dev gcc file git locales
WORKDIR /opt/bridge
COPY . /opt/bridge
RUN pip install --upgrade pip==20.1.1 && pip install -r requirements-dev.txt
RUN pip install -e .
RUN git clone --depth 1 https://github.com/openprocurement/templates.regisrty.git /opt/bridge/template_registry && rm -fr /opt/bridge/template_registry/.git
RUN locale-gen "en_US.UTF-8" && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && apt-get clean
ENV TZ=Europe/Kiev
ENV LANG="en_US.UTF-8"
ENV LC_ALL="en_US.UTF-8"
ENV LC_LANG="en_US.UTF-8"
ENV PYTHONIOENCODING="UTF-8"
ENV PYTHONPATH="/opt/bridge/:${PYTHONPATH}"
CMD ["/usr/local/bin/databridge", "/etc/templatesregistry_data_bridge.yaml"]