Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Сергей Шевченко
Added: Dec 16, 2019 3:39 PM
Modified: Mar 31, 2020 2:41 PM
Views: 81
  1. FROM nginx:1.17
  2.  
  3. MAINTAINER Sergey Shevchenko <sergey.leonidovich.shevchenko@gmail.com>
  4.  
  5. ARG IBS_FRONTEND_NETWORK
  6. ENV IBS_FRONTEND_NETWORK ${IBS_FRONTEND_NETWORK}
  7.  
  8. # Ставим все необходимые для работы пакеты
  9. RUN apt-get update     \
  10.     && apt-get install -y \
  11.            curl           \
  12.            less           \
  13.            vim
  14.  
  15. # Копируем nginx-конфигурацию внутрь контейнера
  16. COPY ./build/development/server/nginx/nginx.conf /etc/nginx/nginx.conf
  17. COPY ./build/development/server/nginx/cors-disabled.conf /etc/nginx/cors-disabled.conf
  18. COPY ./build/development/server/nginx/conf.d/ibs-backend.conf /etc/nginx/conf.d/ibs-backend.conf
  19.  
  20. # Устанавливаем рабочую дирректорию
  21. WORKDIR /etc/nginx
  22.  
  23. # Entrypoint
  24. COPY ./build/development/server/nginx/entrypoint.sh /entrypoint.sh
  25. RUN chmod +x /entrypoint.sh
  26. ENTRYPOINT ["/entrypoint.sh"]
  27.  
  28. EXPOSE 80 443
  29.  
  30. CMD ["nginx-debug", "-g", "daemon off;"]
  31.