-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (16 loc) · 821 Bytes
/
Dockerfile
File metadata and controls
26 lines (16 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM nginx:1.26-alpine
MAINTAINER Reittiopas version: 0.1
ENV INSTALL_DIR="/opt/nginx"
WORKDIR /etc/nginx
RUN mkdir -p $INSTALL_DIR /opt/nginx/www /opt/nginx/cache /opt/nginx/geocache /opt/nginx/temp-cache /opt/nginx/cache/temp /var/cache/nginx/client_temp /var/cache/nginx/fastcgi_temp/ /var/cache/nginx/uwsgi_temp /var/cache/nginx/scgi_temp
ADD index.html /opt/nginx/www/
ADD *.conf /etc/nginx/
RUN rm /var/log/nginx/* && chmod -R a+rwX ${INSTALL_DIR} /etc/nginx/ /var/log/nginx/ /var/cache/nginx/ /var/run/
#because we dont want to use disk on the containers for logs
RUN ln -sf /dev/stdout /var/log/nginx/access.log
RUN ln -sf /dev/stderr /var/log/nginx/error.log
# Install apache2-utils for htpasswd
RUN apk add --no-cache apache2-utils
EXPOSE 8080
ADD run.sh /usr/local/bin/
CMD ["/usr/local/bin/run.sh"]