diff options
author | Stone, Avi (as206k) <as206k@att.com> | 2018-04-12 16:41:45 +0300 |
---|---|---|
committer | Stone, Avi (as206k) <as206k@att.com> | 2018-04-12 16:41:45 +0300 |
commit | 879e94b78193798e8b170fca9b924d2c3881f7ba (patch) | |
tree | 150de697138a7593869eaae455add025b06a6e04 /docker/Dockerfile.Base | |
parent | 7e02c7aaab14828ef8baaef98865f26d98e3b795 (diff) |
DCAE-D tosca-lab initial commit
DCAE-D tosca-lab initial commit
Change-Id: Ia42934ce7c75abe05fa106585c9334c8b048ee36
Issue-ID: SDC-1218
Signed-off-by: Stone, Avi (as206k) <as206k@att.com>
Diffstat (limited to 'docker/Dockerfile.Base')
-rw-r--r-- | docker/Dockerfile.Base | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/docker/Dockerfile.Base b/docker/Dockerfile.Base new file mode 100644 index 0000000..0f3b85d --- /dev/null +++ b/docker/Dockerfile.Base @@ -0,0 +1,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 \ + && : + |