Skip to content

Instantly share code, notes, and snippets.

/dockerfile
Created Jun 7, 2016

Embed
What would you like to do?
FROM centos:centos7
RUN yum update && yum install -y curl
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
RUN yum install -y nginx git nodejs
RUN useradd -ms /bin/bash admin && \
mkdir /var/services/ && \
groupadd services && \
chown :services /var/services/ && \
chmod 775 /var/services/ && \
usermod -a -G services admin
ADD "http://repo.intrinsic.world.s3.amazonaws.com/empty.txt" /entropy.txt
RUN git clone https://ckemmler@bitbucket.org/ckemmler/dictionary-editor.git /var/services/dictionary-editor
WORKDIR /var/services/dictionary-editor
RUN git fetch && git checkout feature/microservice && git pull
RUN npm install bower pm2 -g && npm install && npm install jsonwebtoken mongodb@1.4.40 mongoskin@1.4.13
RUN chmod -R 777 /var/services/
USER admin
RUN bower install
EXPOSE 8080
CMD ["node", "app.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.