SatCat commited on
Commit
ed7a6e1
·
verified ·
1 Parent(s): 0fca476

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -15,14 +15,13 @@ RUN curl -LO https://github.com/prometheus/pushgateway/releases/download/v${PUSH
15
  && mv pushgateway-${PUSHGATEWAY_VERSION}.linux-amd64/pushgateway /usr/local/bin/ \
16
  && rm -rf pushgateway-${PUSHGATEWAY_VERSION}.linux-amd64.tar.gz pushgateway-${PUSHGATEWAY_VERSION}.linux-amd64
17
 
18
- RUN mkdir -p /prometheus /etc/prometheus /etc/nginx/http.d \
19
- && chown -R nobody:nobody /prometheus \
20
- && chmod -R 777 /prometheus \
21
- && chown nobody:nobody /etc/prometheus \
22
- && chown nobody:nobody /etc/nginx/http.d
23
 
24
  COPY --chown=nobody prometheus.yml /etc/prometheus/prometheus.yml
25
- COPY nginx.conf /etc/nginx/http.d/default.conf
 
26
  COPY entrypoint.sh /entrypoint.sh
27
  RUN chmod +x /entrypoint.sh
28
 
 
15
  && mv pushgateway-${PUSHGATEWAY_VERSION}.linux-amd64/pushgateway /usr/local/bin/ \
16
  && rm -rf pushgateway-${PUSHGATEWAY_VERSION}.linux-amd64.tar.gz pushgateway-${PUSHGATEWAY_VERSION}.linux-amd64
17
 
18
+ RUN mkdir -p /prometheus /etc/prometheus /etc/nginx/http.d /var/log/nginx /var/nginx/tmp \
19
+ && chown -R nobody:nobody /prometheus /etc/prometheus /etc/nginx /var/log/nginx /var/nginx/tmp \
20
+ && chmod -R 777 /prometheus /var/log/nginx /var/nginx/tmp
 
 
21
 
22
  COPY --chown=nobody prometheus.yml /etc/prometheus/prometheus.yml
23
+ COPY nginx.conf /etc/nginx/nginx.conf
24
+ COPY default.conf /etc/nginx/http.d/default.conf
25
  COPY entrypoint.sh /entrypoint.sh
26
  RUN chmod +x /entrypoint.sh
27