auto-semver/Dockerfile

30 lines
567 B
Docker
Raw Normal View History

2019-08-06 21:23:51 +02:00
FROM centos/python-36-centos7
2019-08-08 18:48:16 +02:00
2019-08-06 21:23:51 +02:00
USER root
2017-02-23 21:34:12 +01:00
2019-08-06 21:23:51 +02:00
#Perform updates
2017-02-23 21:34:12 +01:00
RUN pip install --upgrade pip
2019-08-06 21:23:51 +02:00
RUN yum update -y
2019-11-27 20:35:49 +01:00
RUN yum -y remove git
2020-06-15 22:57:41 +02:00
RUN yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
RUN yum -y install git
2019-08-06 21:23:51 +02:00
#Setup semver
ADD / /semver
2017-02-23 21:34:12 +01:00
WORKDIR /semver
2019-08-08 18:48:16 +02:00
RUN python setup.py sdist
RUN pip install dist/semver-*.tar.gz
2017-02-23 21:34:12 +01:00
2019-08-06 21:23:51 +02:00
# Prep workspace
RUN mkdir /workspace
WORKDIR /workspace
VOLUME /workspace
2017-02-23 21:34:12 +01:00
2019-08-06 21:23:51 +02:00
#Permissions
RUN useradd -d /semverUser semverUser
RUN chown -R semverUser:semverUser /workspace
CMD [ "semver" ]
2017-02-23 21:34:12 +01:00
USER semverUser