-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
44 lines (33 loc) · 1.1 KB
/
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
41
42
43
ARG BASE_CONTAINER=continuumio/miniconda3:4.10.3
FROM $BASE_CONTAINER
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install -yq --no-install-recommends \
wget \
ca-certificates \
locales \
gcc \
git \
libc6-dev \
vim \
curl \
make \
zlib1g-dev libbz2-dev liblzma-dev libssl-dev libcurl4-openssl-dev\
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen
RUN conda install -y -c conda-forge \
cython numpy numcodecs blosc lz4 nomkl cytoolz python-blosc pandas \
psycopg2 ipython tini bokeh ipykernel jupyter_client && \
conda clean --all -f -y
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY ./docker/start.sh /usr/local/bin/start.sh
RUN chmod a+rx /usr/local/bin/start.sh
RUN addgroup --gid 1000 user && \
adduser --home /user --uid 1000 --gid 1000 --disabled-password --gecos None user
RUN chown -R user:user /opt/conda
ENV PATH=/user/.local/bin:$PATH
WORKDIR /user
USER 1000
ENTRYPOINT ["tini", "-g", "--", "/usr/local/bin/start.sh"]