-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
36 lines (30 loc) · 1015 Bytes
/
Dockerfile
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
33
34
35
36
# Use python 3.6
FROM python:3.6-slim
ENV KPFPIPE_TEST_DATA=/testdata
ENV KPFPIPE_DATA=/data
ENV KPFPIPE_TEST_OUTPUTS=/outputs
# install this way to fix paths in coverage report
ENV PYTHONPATH=$PYTHONPATH:/code/KPF-Pipeline
ENV PYTHONHASHSEED=0
ENV PYTHONUNBUFFERED=1
# turn off built-in Python multithreading
ENV MKL_NUM_THREADS=1
ENV NUMEXPR_NUM_THREADS=1
ENV OMP_NUM_THREADS=1
# setup the working directory
RUN mkdir /code && \
mkdir /code/KPF-Pipeline && \
mkdir /data && \
mkdir /outputs && \
apt-get --yes update && \
apt install build-essential -y --no-install-recommends && \
apt-get install --yes git vim emacs nano parallel && \
/usr/local/bin/python -m pip install --upgrade pip && \
cd /code/KPF-Pipeline && \
mkdir -p logs && \
mkdir -p outputs
# Set the working directory to KPF-Pipeline
WORKDIR /code/KPF-Pipeline
RUN git config --global --add safe.directory /code/KPF-Pipeline
ADD requirements.txt /code/KPF-Pipeline/
RUN pip3 install -r requirements.txt