From b549b872362cf518484f2550e1559cb7e39766e7 Mon Sep 17 00:00:00 2001 From: promiseowolabi Date: Mon, 24 Jun 2019 13:53:27 +0100 Subject: [PATCH] Create Dockerfile Easy way to run DMC as a container --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1571a96 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:16.04 + +RUN apt-get update -y +RUN apt-get install python-pip -y +RUN apt-get install git -y + +RUN mkdir /opt/dmc +WORKDIR /opt/dmc + +RUN git clone https://github.com/NetApp-StorageGRID/storagegrid-dmc.git +WORKDIR /opt/dmc/storagegrid-dmc +RUN apt-get install build-essential libgmp3-dev python-dev -y +WORKDIR /opt/dmc/storagegrid-dmc/installer_scripts +RUN pip install -r requirement.txt + +EXPOSE 8080 + +WORKDIR /opt/dmc/storagegrid-dmc +CMD python ./run.py