21 lines
380 B
Docker
21 lines
380 B
Docker
FROM centos:7
|
|
|
|
MAINTAINER RightBrain Networks "ops+docker@rightbrainnetworks.com"
|
|
|
|
RUN yum update -y && yum install -y epel-release
|
|
|
|
RUN yum install -y git
|
|
|
|
RUN yum install -y python-pip
|
|
RUN pip install --upgrade pip
|
|
|
|
RUN useradd -d /semver semver
|
|
WORKDIR /semver
|
|
|
|
ADD ./ /semver
|
|
RUN chmod -R +r /semver && chmod +x /semver
|
|
|
|
RUN pip install -e .
|
|
|
|
CMD semver && semver_get_version
|