File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ WORKDIR /usr/src/app
55COPY . .
66
77RUN pip install --no-cache-dir -r requirements.txt
8- RUN git clone https://github.com/SilverLineFramework/libsilverline.git
9- # COPY libsilverline/requirements.txt ./
8+ RUN git clone https://github.com/SilverLineFramework/libsilverline.git || true # dont error out when libsilverline folder exists
109WORKDIR /usr/src/app/libsilverline
1110RUN pip install --no-cache-dir -r requirements.txt
1211
@@ -15,5 +14,5 @@ WORKDIR /usr/src/app
1514RUN chmod +x wait-for-it.sh
1615RUN chmod +x docker-entrypoint.sh
1716
18- ENTRYPOINT ["./docker-entrypoint.sh" ]
17+ # ENTRYPOINT ["./docker-entrypoint.sh"]
1918CMD python manage.py runserver 0.0.0.0:8000
Original file line number Diff line number Diff line change 2828 fi
2929done
3030
31+ port=$( grep ' "http_port"' $config_file | cut -d' :' -f2 | sed ' s/[^0-9]*//g' )
32+ echo " Starting on port " ${port:- 8000}
3133make migrate
32- python manage.py runserver 0.0.0.0:8000
34+ python manage.py runserver 0.0.0.0:${port :- 8000}
You can’t perform that action at this time.
0 commit comments