This project demonstrates a game application containerized using Docker and hosted on AWS Elastic Beanstalk.
- Containerization: Docker
- Cloud Hosting: AWS Elastic Beanstalk
The Dockerfile used for this application includes:
- Base Image: [e.g., ubuntu:22.04, Python:3.8-slim]
- Dependencies Installation: Installs all required libraries and dependencies.
- Port Exposure: Exposes the application port (e.g.,
EXPOSE 80). - Application Start: Specifies the command to start the game application.
FROM ubuntu:22.04
RUN apt-get update
RUN apt-get install -y nginx curl zip
RUN echo "daemon off;" >>/etc/nginx/nginx.conf
RUN curl -o /var/www/html/master.zip -L https://codeload.github.com/gabrielecirulli/2048/zip/master
RUN cd /var/www/html/ && unzip master.zip && mv 2048-master/* . && rm -rf 2048-master master.zip
EXPOSE 80
CMD [ "/usr/sbin/nginx","-c","/etc/nginx/nginx.conf"]-
Login to AWS Console:
- Navigate to the AWS Elastic Beanstalk service.
-
Create a New Application:
- Click on "Create Application."
- Enter the application name and select the platform (e.g., Docker).
-
Upload Code:
- Upload the source bundle (ZIP file with Dockerfile and application code).
-
Configure Environment:
- Set environment variables and select instance type as needed.
-
Deploy:
- Launch the application and monitor deployment progress.
-
Access the Application:
- Once deployed, use the provided URL to access your application.
- Use
curlor a web browser to access the game application.
- Environment Variables: Store sensitive data using Elastic Beanstalk environment variables.
- IAM Roles: Ensure the Elastic Beanstalk environment has an appropriate IAM role for AWS services.
- Network Security: Configure security groups to restrict access.

