Compare commits
No commits in common. "develop" and "master/v0.1.0" have entirely different histories.
develop
...
master/v0.
|
|
@ -0,0 +1,15 @@
|
|||
FROM python:3.8
|
||||
|
||||
RUN pip install --upgrade pip setuptools \
|
||||
&& ./packages.sh
|
||||
|
||||
ADD chat /app/chat
|
||||
ADD generalApp /app/generalApp
|
||||
ADD TradeApp /app/TradeApp
|
||||
ADD manage.py /app/manage.py
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN ./migrate.sh
|
||||
|
||||
CMD ["./run.sh"]
|
||||
19
Dockerfile
19
Dockerfile
|
|
@ -1,17 +1,14 @@
|
|||
FROM python:3.8
|
||||
FROM redis
|
||||
|
||||
RUN pip install --upgrade pip setuptools
|
||||
RUN python -m venv venv
|
||||
RUN source venv/bin/activate
|
||||
|
||||
ADD chat ./chat
|
||||
ADD generalApp ./generalApp
|
||||
ADD TradeApp ./TradeApp
|
||||
ADD manage.py ./manage.py
|
||||
ADD packages.sh ./packages.sh
|
||||
ADD migrate.sh ./migrate.sh
|
||||
ADD run.sh ./run.sh
|
||||
CMD ["mkdir", "application"]
|
||||
WORKDIR /application
|
||||
|
||||
RUN git clone git@github.com:TBS093A/trade-app-backend.git
|
||||
|
||||
RUN ./packages.sh
|
||||
RUN ./migrate.sh
|
||||
|
||||
# CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "TradeApp.wsgi"]
|
||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:9090"]
|
||||
RUN ./run.sh
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,4 +1,4 @@
|
|||
# python manage.py makemigrations
|
||||
python manage.py makemigrations
|
||||
python manage.py migrate
|
||||
# python manage.py graph_models -a -g -o class_diagram_by_apps.png
|
||||
# python manage.py graph_models -a -o class_diagram.png
|
||||
|
|
@ -4,7 +4,7 @@ pip install django-cors-headers==3.5.0
|
|||
pip install channels_redis==3.1.0
|
||||
pip install requests==2.24.0
|
||||
pip install pyjwt==1.7.1
|
||||
pip install gunicorn==20.0.4
|
||||
|
||||
|
||||
# for runing generate UML:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue