Compare commits

...

1 Commits

Author SHA1 Message Date
TBS093A 8da2bd8eac fix dockerfile 2020-11-06 13:32:51 +00:00
34 changed files with 15 additions and 27 deletions

View File

@ -1,15 +0,0 @@
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"]

View File

@ -1,14 +1,17 @@
FROM python:3.8
FROM redis
RUN python -m venv venv
RUN source venv/bin/activate
RUN pip install --upgrade pip setuptools
CMD ["mkdir", "application"]
WORKDIR /application
RUN git clone git@github.com:TBS093A/trade-app-backend.git
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
RUN ./packages.sh
RUN ./migrate.sh
RUN ./run.sh
# CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "TradeApp.wsgi"]
CMD ["python", "manage.py", "runserver", "0.0.0.0:9090"]

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.

View File

@ -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

View File

@ -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: