-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
40 lines (33 loc) · 925 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
37
38
39
40
FROM python:3.6-jessie
LABEL maintainers="\
Juan S. Medina <https://github.com/jsmedmar>, \
Juan E. Arango <https://github.com/juanesarango>"
# define directories
ENV OUTPUT_DIR /data
ENV WORK_DIR /code
# for cookiecutter-testing
ENV PROJECT toil_container
# mount the output volume as persistant
VOLUME ${OUTPUT_DIR}
RUN \
# install Packages Dependencies
sed -i '/jessie-updates/d' /etc/apt/sources.list && \
apt-get update -yqq && \
apt-get install -yqq \
curl \
git \
locales \
python-pip \
wget && \
apt-get clean && \
\
# configure locale, see https://github.com/rocker-org/rocker/issues/19
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen en_US.utf8 && \
/usr/sbin/update-locale LANG=en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
# install toil_container
COPY . ${WORK_DIR}
WORKDIR ${WORK_DIR}
RUN pip install --editable .