BinaryONe commited on
Commit
d263103
·
1 Parent(s): c8fbd81

Nginx Changes-Over Alpine

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -4
  2. nginx-new.conf +2 -4
Dockerfile CHANGED
@@ -29,14 +29,14 @@ COPY . /app
29
  #You may want to make backup of original nginx.conf file before writting your own
30
  RUN mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.orig
31
 
32
- # Print the configuration files to the console (good addition)
33
- RUN cat /etc/nginx/nginx.conf && echo "--------------------"
34
- # && cat /etc/nginx/conf.d/default.conf
35
-
36
  # Copy Nginx config
37
  #COPY www.privateone-teleapi.hf.space.conf /etc/nginx/conf.d/www.privateone-teleapi.hf.space.conf
38
  COPY /app/nginx-new.conf /etc/nginx/nginx.conf
39
 
 
 
 
 
40
  # Create necessary directories and set correct permissions (fix ownership)
41
  RUN mkdir -p /var/www/html /var/log/nginx /run/nginx && \
42
  chown -R nginx:nginx /var/lib/nginx /var/log/nginx /run/nginx && \
 
29
  #You may want to make backup of original nginx.conf file before writting your own
30
  RUN mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.orig
31
 
 
 
 
 
32
  # Copy Nginx config
33
  #COPY www.privateone-teleapi.hf.space.conf /etc/nginx/conf.d/www.privateone-teleapi.hf.space.conf
34
  COPY /app/nginx-new.conf /etc/nginx/nginx.conf
35
 
36
+ # Print the configuration files to the console (good addition)
37
+ RUN cat /etc/nginx/nginx.conf && echo "--------------------"
38
+ # && cat /etc/nginx/conf.d/default.conf
39
+
40
  # Create necessary directories and set correct permissions (fix ownership)
41
  RUN mkdir -p /var/www/html /var/log/nginx /run/nginx && \
42
  chown -R nginx:nginx /var/lib/nginx /var/log/nginx /run/nginx && \
nginx-new.conf CHANGED
@@ -1,9 +1,7 @@
1
  user user;
2
- worker_processes auto; # it will be determinate automatically by the number of core
3
-
4
  error_log /var/log/nginx/error.log warn;
5
- pid /var/run/nginx/nginx.pid; # it permit you to use rc-service nginx reload|restart|stop|start
6
-
7
  events {
8
  worker_connections 1024;
9
  }
 
1
  user user;
2
+ worker_processes auto;
 
3
  error_log /var/log/nginx/error.log warn;
4
+ pid /var/run/nginx/nginx.pid;
 
5
  events {
6
  worker_connections 1024;
7
  }