-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (28 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
FROM ubuntu:16.04
MAINTAINER Alireza Tofighi Mohammadi <[email protected]>
RUN echo "version 1.0.0"
# skip any interactive post-install configuration steps
ENV DEBIAN_FRONTEND noninteractive
RUN sed -i 's|http://us.|http://ir.|g' /etc/apt/sources.list
RUN sed -i 's|http://archive|http://ir.archive|g' /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y ssh python3 python3-dev python3-setuptools python3-pip ipython
RUN apt-get install -y curl vim nano iputils-ping binutils
RUN apt-get install -y libpq-dev libproj-dev gdal-bin
RUN apt-get install -y locales tzdata
RUN apt-get install -y rsyslog cron
RUN echo "Asia/Tehran" > /etc/timezone
RUN dpkg-reconfigure -f noninteractive tzdata
ADD ./requirements.txt /opt/producer/requirements.txt
RUN pip3 install --upgrade pip
RUN pip3 install --upgrade -r /opt/producer/requirements.txt
ENV HTTP_PROXY ''
ENV HTTPS_PROXY ''
ENV TZ=Asia/Tehran
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ADD . /opt/producer
WORKDIR /opt/producer