-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-test
32 lines (24 loc) · 967 Bytes
/
Dockerfile-test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:latest
RUN apt-get update --fix-missing
RUN apt-get install -y python3.6 python3-distutils build-essential python3.6-dev curl git
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.6
# Fixes error when installing pyocclient
# UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 229: ordinal not in range(128)
RUN apt-get install -y locales
RUN locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV PYTHONIOENCODING=utf-8
COPY requirements.txt /requirements.txt
RUN pip3.6 install -r /requirements.txt
ADD ./darc_core /DARC/darc_core/
ADD ./test.py /DARC
ADD ./data /DARC/data
ADD ./config.py /DARC/config.py
ADD . /DARC/darc_compare
WORKDIR /DARC/darc_compare
RUN git checkout tested
# RUN git clone --branch tested https://gitlab.ikb.info.uqam.ca/alaurent/darc_aicrowd.git /DARC/darc_compare
RUN cp ./config.py.example ./config.py
RUN touch __init__.py
WORKDIR /DARC
# vi: ft=dockerfile