Created
July 9, 2018 16:22
-
-
Save jeffbryner/29776a349a88297588de5266d8404cfd to your computer and use it in GitHub Desktop.
mozdef_meteor dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:7 | |
LABEL maintainer="[email protected]" | |
ENV NODE_VERSION 4.7.0 | |
ENV METEOR_VERSION 1.4.2.3 | |
ENV MONGO_URL=mongodb://mongodb:3002/meteor | |
ENV ROOT_URL=http://localhost | |
ENV PORT=3000 | |
RUN \ | |
useradd -ms /bin/bash -d /opt/mozdef -m mozdef && \ | |
mkdir -p /opt/mozdef/envs/mozdef && \ | |
cd /opt/mozdef && \ | |
chown -R mozdef:mozdef /opt/mozdef && \ | |
yum install -y \ | |
wget \ | |
make \ | |
glibc-devel \ | |
gcc \ | |
gcc-c++ \ | |
libstdc++ \ | |
libffi-devel \ | |
zlib-devel && \ | |
curl -sL -o /opt/mozdef/nodesource.rpm https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm && \ | |
rpm -i --nosignature --force /opt/mozdef/nodesource.rpm && \ | |
yum install -y nodejs-$NODE_VERSION && \ | |
mkdir /opt/mozdef/meteor && \ | |
curl -sL -o /opt/mozdef/meteor.tar.gz https://static-meteor.netdna-ssl.com/packages-bootstrap/$METEOR_VERSION/meteor-bootstrap-os.linux.x86_64.tar.gz && \ | |
tar -xzf /opt/mozdef/meteor.tar.gz -C /opt/mozdef/meteor && \ | |
mv /opt/mozdef/meteor/.meteor /opt/mozdef && \ | |
rm -r /opt/mozdef/meteor && \ | |
cp /opt/mozdef/.meteor/packages/meteor-tool/*/mt-os.linux.x86_64/scripts/admin/launch-meteor /usr/bin/meteor | |
COPY code /opt/mozdef/envs/mozdef/meteor | |
COPY docker/compose/mozdef_meteor/files/settings.js /opt/mozdef/envs/mozdef/meteor/app/lib/settings.js | |
RUN chown -R mozdef:mozdef /opt/mozdef/envs/mozdef/meteor | |
USER mozdef | |
RUN \ | |
mkdir -p /opt/mozdef/envs/meteor/mozdef && \ | |
cd /opt/mozdef/envs/mozdef/meteor && \ | |
meteor npm install | |
WORKDIR /opt/mozdef/envs/meteor/mozdef | |
EXPOSE 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment