Cleaned up Dockerfile

This commit is contained in:
Semantic Versioner 2019-08-08 12:48:16 -04:00
parent 70674f9db5
commit f1ca13bcc3

View File

@ -1,21 +1,16 @@
FROM centos/python-36-centos7
MAINTAINER RightBrain Networks "ops+docker@rightbrainnetworks.com"
USER root
#Perform updates
RUN pip install --upgrade pip
RUN yum update -y
#Install reqs
RUN yum install -y epel-release
RUN yum install -y git
#Setup semver
ADD / /semver
WORKDIR /semver
RUN pip install -e .
RUN python setup.py sdist
RUN pip install dist/semver-*.tar.gz
# Prep workspace
RUN mkdir /workspace
@ -26,6 +21,6 @@ VOLUME /workspace
RUN useradd -d /semverUser semverUser
RUN chown -R semverUser:semverUser /workspace
CMD /opt/app-root/bin/semver
ENTRYPOINT [ "semver" ]
USER semverUser