-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (26 loc) · 960 Bytes
/
Dockerfile
File metadata and controls
37 lines (26 loc) · 960 Bytes
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
FROM debian:testing
RUN apt-get update && apt-get install -q -y locales wget bzip2
# Set locale
RUN echo "pt_BR.UTF-8 UTF-8" > /etc/locale.gen
RUN locale-gen pt_BR.UTF-8
RUN update-locale pt_BR.UTF-8
ENV LC_ALL pt_BR.UTF-8
# Create deploy user
RUN useradd --shell=/bin/bash --home=/srv/deploy/ --create-home deploy
# install miniconda
RUN wget -O Miniconda.sh http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN bash Miniconda.sh -b -p /opt/miniconda && \
rm Miniconda.sh
ENV PATH="/opt/miniconda/bin:${PATH}"
# config conda
RUN conda config --set show_channel_urls True && \
conda update --yes --all && \
conda clean --tarballs --packages && \
conda config --add channels conda-forge
RUN conda install fludashboard
EXPOSE 8000
# copy ~/.flu.yaml to current dir before build
ADD .flu.yaml /root/.flu.yaml
RUN python -m fludashboard.libs.migration
RUN conda install gunicorn -y
RUN python -m fludashboard.runwsgi