summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile.Base
blob: 0f3b85d8f03c31b7a7fa17965d2eeb631179e606 (plain)
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
FROM python:3.5-alpine

ENV http_proxy http://one.proxy.att.com:8080
ENV https_proxy http://one.proxy.att.com:8080

ENV GROUPID=1000 \
    USERNAME=dcae \
    USERID=1001 \
    USER_HOME=/home/dcae

RUN apk add --no-cache \
    autoconf \
    gcc \
    libc-dev \
    linux-headers \
    nginx \
    && :

RUN pip install --upgrade setuptools && \
    pip install uwsgi==2.0.15

RUN mkdir -p \
    /var/log/uwsgi \
    /run/uwsgi \
    /srv    

RUN addgroup -g ${GROUPID} -S ${USERNAME}

RUN adduser -S -G ${USERNAME} -u ${USERID} -s /bin/bash -h ${USER_HOME} ${USERNAME}

RUN chown ${USERNAME}:nginx /run/uwsgi

RUN apk del \
    autoconf \
    gcc \
    libc-dev \
    linux-headers \
    && :