-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile-base
executable file
·53 lines (41 loc) · 1.14 KB
/
Dockerfile-base
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
44
45
46
47
48
49
50
51
52
53
FROM python:2.7-stretch
ARG USER=firecares
ARG UID=1000
ARG GID=1000
ARG PW=firecares
# Option1: Using unencrypted password/ specifying password
RUN useradd -m ${USER} --uid=${UID} && echo "${USER}:${PW}" | \
chpasswd
# FIRECARES STUFF:
RUN apt-get update && \
apt-get install -y \
libmemcached-dev \
binutils \
build-essential \
ca-certificates \
default-libmysqlclient-dev \
gdal-bin \
libcurl4-gnutls-dev \
libgcrypt20-dev \
libgdal-dev \
libgnutls28-dev \
libproj-dev \
libssl-dev \
python-dev \
python-pycurl \
screen \
telnet \
vim
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV C_INCLUDE_PATH=/usr/include/gdal
ENV SSL_CERT_DIR=/etc/ssl/certs
RUN update-ca-certificates --fresh
USER root
RUN mkdir -p /webapps/firecares/temp /webapps/firecares/logs/ && \
chmod -R 0755 /webapps/firecares/ && \
chmod -R 0777 /webapps/firecares/logs
RUN chown -R ${USER} /webapps
WORKDIR /webapps/firecares/
COPY requirements.txt /webapps/firecares/
RUN chown -R ${USER} /webapps
RUN pip install -r requirements.txt