Commit 1583e8ec by Hao Chen

chenge dockerfile and add start.sh

parent cb25c780
......@@ -15,5 +15,6 @@ ENV LC_ALL en_US.UTF-8
RUN curl -sL https://install.meteor.com | /bin/sh
RUN mkdir /data && cd /data && git clone https://git.microduino.cn/mCotton/mcotton-v1.git && cd mcotton-v1
RUN meteor update --allow-superuser --all-packages && meteor npm install && meteor npm install --save bcrypt && meteor reset --allow-superuser
RUN MONGO_URL=mongodb://mongodb/mcotton_v1 mqttDbUrl=mongodb://mongodb/mqtt meteor --allow-superuser --release 1.4.2.3
\ No newline at end of file
# RUN meteor update --allow-superuser --all-packages && meteor npm install
# RUN meteor reset --allow-superuser
# RUN MONGO_URL=mongodb://mongodb/mcotton_v1 mqttDbUrl=mongodb://mongodb/mqtt meteor --allow-superuser --release 1.4.2.3
\ No newline at end of file
#!/bin/bash
MONGO_URL=mongodb://mongodb/mcotton_v1 mqttDbUrl=mongodb://mongodb/mqtt meteor reset --allow-superuser
MONGO_URL=mongodb://mongodb/mcotton_v1 mqttDbUrl=mongodb://mongodb/mqtt meteor --allow-superuser --release 1.4.2.3
\ No newline at end of file
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