FROM nginx:alpine

# 1. Remove default Nginx config
RUN rm /etc/nginx/conf.d/default.conf

# 2. Copy OUR optimized Global Nginx config
# (Make sure nginx.conf is in the same folder as this Dockerfile)
COPY nginx.conf /etc/nginx/nginx.conf

# 3. Copy your website files
COPY . /usr/share/nginx/html/

EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]