armada/Dockerfile
portdirect 8b1db2b002 fix(Dockerfile): Place config files in expected location
This PS moves the config files to the expected locations.

Change-Id: Ib2fb75a118a662c606f5ec96b07850dd9fb5904d
2017-11-16 03:43:58 -04:00

47 lines
944 B
Docker

FROM ubuntu:16.04
MAINTAINER Armada Team
ENV DEBIAN_FRONTEND noninteractive
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
COPY . /armada
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
netbase \
python3-pip && \
apt-get install -y \
build-essential \
curl \
git \
python3-minimal \
python3-setuptools \
python3-dev && \
useradd -u 1000 -g users -d /armada armada && \
chown -R armada:users /armada && \
mv /armada/etc/armada /etc/ && \
\
cd /armada && \
pip3 install --upgrade pip && \
pip3 install -r requirements.txt && \
python3 setup.py 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"]