add dockerfile and script

This commit is contained in:
Artyom Kravchenko committed 2021-03-15 21:31:39 +03:00
1 parent f6948d016d
commit 0d0c9ad941
2 files changed
+15

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
FROM python:3.6
RUN apt-get -y update && apt-get -y upgrade && apt-get install git && apt-get install curl
RUN git clone https://Kanris:[email protected]/2020-2021/online/s101/group-02/access_controller.git
EXPOSE 8000
COPY start.sh /var/
CMD bash /var/start.sh
+7
View File
@@ -0,0 +1,7 @@
cd /access_controller/
pip install -r requirements.txt
python manage.py migrate
python manage.py collectstatic --noinput
python manage.py runserver 0.0.0.0:8000