anchor.diff:  	nginx \
   	python3 \
   	python3.5-dev \
  -	python3-pip git &&\
  +	python3-pip git \
  +	curl &&\
   	
   	apt-get clean &&\
   	rm -rf /var/lib/apt/lists/*
  
positive.code: RUN chown www-data:www-data -R /var/uwsgi
  
  WORKDIR /data/$container_name/$project_name
  ADD conf/CocktailManager.ini CocktailManager.ini
  
  # Установка WebHook'а
  RUN curl -F "url=https://student.bmstu.cloud/bot" \
  	-F "certificate=/data/$container_name/$project_name/ssl/webhook_selfsigned_cert.pem" \
  	https://api.telegram.org/bot$bot_token/setWebhook
  
  # Запускаем наш сервер, запускаем сервер базы данных, рестартим nginx и запускаем консоль
  ENTRYPOINT uwsgi --ini CocktailManager.ini & service postgresql start & service nginx restart & clear & /bin/bash 
  
  EXPOSE 443 5432
  
negative.code: RUN mkdir static
  RUN mkdir media
  
  # Получение сертификата
  RUN apt-get install openssl
  COPY conf/ssl.ini ssl/ssl.ini
  RUN openssl genrsa -out ssl/webhook_selfsigned_cert.key 2048
  RUN cat ssl/ssl.ini | openssl req -new -x509 -days 3650 -key ssl/webhook_selfsigned_cert.key -out ssl/webhook_selfsigned_cert.pem
  
  