ranger/Dockerfile
Chi Lo f1fb47841a [456932] Armada Manifest changes for configmap and endpoints
- Modified Docker file

Change-Id: I883bb43d183abae01a21f33cc960c4608220c8ec
2018-09-06 17:03:20 +00:00

62 lines
1.1 KiB
Docker

FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
ENV container docker
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
RUN apt -qq update && \
apt -y install git \
netcat \
netbase \
openssh-server \
python-minimal \
python-setuptools \
python-pip \
python-dev \
python-dateutil \
ca-certificates \
openstack-pkg-tools \
apache2 \
gcc \
g++ \
libffi-dev \
libssl-dev --no-install-recommends \
libmysqlclient-dev \
&& apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/man \
/usr/share/doc \
/usr/share/doc-base
RUN pip install wheel
COPY . /tmp/ranger
WORKDIR /tmp/ranger
RUN pip install --default-timeout=100 -r requirements.txt
RUN python setup.py install
# Create user ranger
RUN useradd -u 1000 -ms /bin/bash ranger
# Change permissions
RUN mkdir -p /etc/ranger \
&& mkdir /var/log/ranger \
&& mkdir -p /opt/app \
&& mkdir /home/ranger/git_repo \
&& chown -R ranger: /var/log/ranger \
&& mv /tmp/ranger /home/ranger/ranger \
&& chown -R ranger: /home/ranger \
&& chown -R ranger: /etc/ranger
# Set work directory
USER ranger
WORKDIR /home/ranger