bb26131ce2
- enhanced logging - created base structure - updated docs - PasteDeploy auth - Oslo Policy Closes #107 Change-Id: I805863c57f17fcfb26dac5d03efb165e4be49a4e
44 lines
854 B
Docker
44 lines
854 B
Docker
FROM ubuntu:16.04
|
|
|
|
MAINTAINER Armada Team
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
COPY . /armada
|
|
|
|
RUN apt-get update && \
|
|
apt-get upgrade -y && \
|
|
apt-get install -y --no-install-recommends \
|
|
netbase \
|
|
python-all \
|
|
python-pip \
|
|
python-setuptools && \
|
|
apt-get install -y \
|
|
build-essential \
|
|
curl \
|
|
git \
|
|
python-all-dev && \
|
|
useradd -u 1000 -g users -d /armada armada && \
|
|
chown -R armada:users /armada && \
|
|
\
|
|
cd /armada && \
|
|
pip install --upgrade pip && \
|
|
pip install -r requirements.txt && \
|
|
pip install . && \
|
|
\
|
|
apt-get purge --auto-remove -y \
|
|
build-essential \
|
|
curl && \
|
|
apt-get clean -y && \
|
|
rm -rf \
|
|
/root/.cache \
|
|
/var/lib/apt/lists/*
|
|
|
|
EXPOSE 8000
|
|
|
|
USER armada
|
|
WORKDIR /armada
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|
|
CMD ["server"]
|