FROM nginx:alpine

COPY nginx.conf /etc/nginx/nginx.conf

# Create directories for HLS and frontend
RUN mkdir -p /usr/share/nginx/html/hls /usr/share/nginx/html/admin

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