FROM nginx:latest

# Clean nginx default assets
RUN rm -rf /usr/share/nginx/html/*

# Copy the build output to replace the default nginx contents.
COPY public /usr/share/nginx/html

# Copy our custom config
COPY k8s/nginx/nginx.conf /etc/nginx/conf.d/default.conf

# Expose port 80
EXPOSE 80
