-
Notifications
You must be signed in to change notification settings - Fork 450
/
Copy pathDockerfile
35 lines (24 loc) · 818 Bytes
/
Dockerfile
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
27
28
29
30
31
32
33
34
35
############################################################
# Dockerfile to build Nginx Installed Containers
# Based on nginx image
############################################################
# Set the base image to nginx
FROM iad.ocir.io/ocuocictrng5/nginx:latest
# File Author / Maintainer
MAINTAINER Mahendra Mehra
# Remove the default Nginx configuration file
RUN rm -v /etc/nginx/nginx.conf
# Copy a configuration file from the current directory
ADD nginx.conf /etc/nginx/
RUN mkdir /etc/nginx/logs
# Add a sample index file
ADD index.html /www/data/
# Create a runner script for the entrypoint
COPY runner.sh /runner.sh
RUN chmod +x /runner.sh
# Expose ports
EXPOSE 80
ENTRYPOINT ["/runner.sh"]
# Set the default command to execute
# when creating a new container
CMD ["nginx", "-g", "daemon off;"]