add dockerfile and script

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

8
Dockerfile Normal file
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:902810Ok@gitlab.informatics.ru/2020-2021/online/s101/group-02/access_controller.git
EXPOSE 8000
COPY start.sh /var/
CMD bash /var/start.sh

7
start.sh Normal file
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