diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..c2250fc02 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +# # Use the official Nginx image as a base +# FROM nginx:1.25 + +# # Create a non-root user and switch to it +# RUN addgroup --system nginx && adduser --system --ingroup nginx nginx +# USER nginx + +# # Copy your custom configuration or HTML files if needed +# COPY --chown=nginx:nginx index.html /usr/share/nginx/html/ + +# # Expose port 80 +# EXPOSE 80 + +# # Start Nginx +# CMD ["nginx", "-g", "daemon off;"] + +# Use the official Nginx image as a base +FROM nginx:1.25 + +# Copy the index.html file to the default Nginx web directory +COPY index.html /usr/share/nginx/html/ + +# Expose port 80 +EXPOSE 80 + +# Start Nginx +CMD ["nginx", "-g", "daemon off;"] diff --git a/index.html b/index.html index d971cf9e0..bdf17b55e 100644 --- a/index.html +++ b/index.html @@ -2,11 +2,12 @@ - Sample Deployment + Sample Deployment<title> <style> body { - color: #ffffff; - background-color: #007f3f; + color:#9400D3; + + background-color: #FFA500; font-family: Arial, sans-serif; font-size: 14px; } @@ -27,7 +28,7 @@ <body> <div align="center"> <h1>Congratulations!</h1> - <h2>You have successfully created a pipeline that retrieved this source application from an Amazon S3 bucket and deployed it + <h2>I'M M022211_Prasanth have successfully created a pipeline that retrieved this source application from an Amazon S3 bucket and deployed it to three Amazon EC2 instances using AWS CodeDeploy.</h2> <p>For next steps, read the AWS CodePipeline Documentation.</p> </div>