Commit 4a846e1c by nabil el mahiri

new clean docker file

parent 7a477f14
Pipeline #476 failed with stages
in 12 seconds
......@@ -36,13 +36,13 @@ COPY /nginx/default.conf /etc/nginx/sites-enabled
RUN npm install --global grunt-cli
# install mongo version 3.4
# add mongo repo
# install mongo
# create db folder
# run mongo in background
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 && \
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/cmain" | tee /etc/apt/sources.list.d/mongodb-org-3.4.list && \
apt-get update && apt-get -yq install mongodb-org && \
# 1. add mongo repo
# 2. install mongo
# 3. create db folder
# 4. run mongo in background
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 \
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/cmain" | tee /etc/apt/sources.list.d/mongodb-org-3.4.list
RUN apt-get update && apt-get -yq install mongodb-org && \
mongod --fork --syslog && \
mkdir -p /data/db
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment