auto-semver/Dockerfile
Semantic Versioner a2e9d37881 update git version
2019-11-27 14:28:14 -05:00

29 lines
524 B
Docker

FROM centos/python-36-centos7
USER root
#Perform updates
RUN pip install --upgrade pip
RUN yum update -y
RUN yum -y install https://centos7.iuscommunity.org/ius-release.rpm
RUN yum -y install git2u-all
#Setup semver
ADD / /semver
WORKDIR /semver
RUN python setup.py sdist
RUN pip install dist/semver-*.tar.gz
# Prep workspace
RUN mkdir /workspace
WORKDIR /workspace
VOLUME /workspace
#Permissions
RUN useradd -d /semverUser semverUser
RUN chown -R semverUser:semverUser /workspace
CMD [ "semver" ]
USER semverUser