Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalkowski committed Oct 27, 2020
1 parent ee67264 commit f4a3f03
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
FROM centos:7.7.1908 as builder
FROM centos:7.8.2003 as builder

ARG VMC_VERSION=1.1-RC-1
ENV VMC_VERSION=${VMC_VERSION}


RUN yum install -y epel-release; \
yum install -y python36 python36-devel mariadb-devel gcc; \
python3 -m venv /opt/vmc;
RUN yum install -y epel-release-7-11.noarch; \
yum install -y python3-3.6.8-13.el7.x86_64 \
python3-devel-3.6.8-13.el7.x86_64 \
mariadb-devel-1:5.5.65-1.el7.x86_64 \
gcc-4.8.5-39.el7.x86_64; \
python3 -m venv /opt/vmc; \
yum clean all;

ENV PATH="/opt/vmc/bin:$PATH"

RUN pip3.6 install --no-cache-dir vmcenter==${VMC_VERSION}


FROM centos:7.7.1908
FROM centos:7.8.2003

ENV TZ=Poland
ENV PYTHONDONTWRITEBYTECODE 1
Expand All @@ -31,9 +35,10 @@ LABEL org.label-schema.schema-version="1.1-RC-1" \
COPY root /
COPY --from=builder /opt/vmc /opt/vmc

RUN yum install -y epel-release; \
yum -y update; \
yum install -y python36 nginx; \
RUN yum install -y epel-release-7-11.noarch; \
yum install -y python3-3.6.8-13.el7.x86_64 \
mariadb-devel-1:5.5.65-1.el7.x86_64 \
nginx-1:1.16.1-2.el7.x86_64; \
mkdir -p /usr/share/vmc/static; \
vmc collectstatic --noinput --clear; \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone; \
Expand Down

0 comments on commit f4a3f03

Please sign in to comment.