e1b64d200b
- adding .editorconfig file - minor cleanup in various files related to .editorconfig - typos, whitespace, etc. - other general housekeeping items on the codebase Change-Id: I104f8dcb06aafb180da12f7ee4c0ded41fc07b9d
34 lines
658 B
Docker
34 lines
658 B
Docker
FROM python:3.5
|
|
|
|
MAINTAINER Armada Team
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
ENV LANG=C.UTF-8
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
COPY requirements.txt /tmp/
|
|
RUN pip3 install -r /tmp/requirements.txt
|
|
|
|
COPY . /armada
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
netbase \
|
|
curl \
|
|
git && \
|
|
useradd -u 1000 -g users -d /armada armada && \
|
|
chown -R armada:users /armada && \
|
|
mv /armada/etc/armada /etc/ && \
|
|
cd /armada && \
|
|
python3 setup.py install && \
|
|
rm -rf \
|
|
/root/.cache \
|
|
/var/lib/apt/lists/*
|
|
|
|
EXPOSE 8000
|
|
|
|
USER armada
|
|
WORKDIR /armada
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|
|
CMD ["server"]
|