armada/Dockerfile
Roadrunner2058 d383e772fd feat(yaml): Support document references
This allows the user to apply and/or validate a manifest using
either a filepath (as before) or URL.

Addition by sh8121att:

- Create a general document resolver class to handle local paths
  and URIs
- Allow multiple filenames and combine them into a single document
  set
- Change API to allow for passing document reference URIs to be
  resolved server-side rather
- Update validation API to conform to UCP specification
- Dockerfile updates to speed up build
- Fix unit tests

Closes #96

Change-Id: I5a57779f10d1b63ffc161a14afec851a34ae9efe
2018-01-08 13:39:26 -06:00

34 lines
648 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"]