From 5bdfe40eeb417f1964103bad147a076d9d4e255e Mon Sep 17 00:00:00 2001 From: "sarthakprasad012@gmail.com" Date: Sun, 12 May 2024 22:12:26 +0530 Subject: [PATCH 1/3] Added Dockerfile for containerizing the application --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..946b8e6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +# Official Nginx runtime as the base image +FROM nginx:alpine + +WORKDIR /usr/share/nginx/html + + +# Copy the static files to the Nginx web directory +COPY . . + +# Expose port 80 for the app +EXPOSE 8080 + From ee9d10d8b4d5cd08dc44d9c2e20a37994020b2ce Mon Sep 17 00:00:00 2001 From: "sarthakprasad012@gmail.com" Date: Sun, 12 May 2024 22:14:15 +0530 Subject: [PATCH 2/3] Updated README.md with Docker container documentation and prerequisites --- README.md | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bf3e5d9..317713f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,66 @@ + # Rubik-Cube -## Rubik-Cube using HTML , CSS , JS +This project is a virtual Rubik's Cube implemented using HTML, CSS, and JavaScript. It provides a web-based interface for users to interact with and solve a Rubik's Cube puzzle. + + +## Description + +The Rubik-Cube is a classic three-dimensional puzzle that has challenged and entertained people for decades. This project brings the experience of solving a Rubik's Cube to the digital realm, allowing users to manipulate the cube's faces and solve it through a web browser. +## Run Locally + +Clone the project + +```bash + https://github.com/Dev-tanay/Rubik-Cube.git +``` + +Go to the project directory + +```bash + cd Rubik-Cube +``` +Click on the index.html + + +## Run locally using Docker + +### Prerequisites: +1. Docker installed on your local machine. +2. Basic understanding of Docker concepts such as containers, images, and Dockerfiles. +3. Familiarity with Docker commands for building and running containers. + +## Building Docker image + +Clone the repository to your local machine. +``` bash +https://github.com/Dev-tanay/Rubik-Cube.git +``` +Navigate to the root directory of the project + +``` bash +cd Rubik-Cube +``` +Open a terminal or command prompt. +Run the following command to build the Docker image: + +```bash +docker build -t rubik-cube:latest . +``` +## Running Docker Container + +Run the following command to start a Docker container from the image: + +``` bash +docker run -d -p 8080:80 rubik-cube:latest +``` +Access the Rubik's Cube application by opening a web browser and navigating to : + +``` link +http://localhost:8080 +``` + + -Link -> https://dev-tanay.github.io/Rubik-Cube/ +### Link : +https://dev-tanay.github.io/Rubik-Cube/ From 7ba86436075d64b9ddd93f403123110915dde9c2 Mon Sep 17 00:00:00 2001 From: Sarthak <94513009+Sarthak027@users.noreply.github.com> Date: Tue, 4 Jun 2024 22:04:58 +0530 Subject: [PATCH 3/3] resolved conflict readme.md file --- README.md | 66 ------------------------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 317713f..0000000 --- a/README.md +++ /dev/null @@ -1,66 +0,0 @@ - -# Rubik-Cube - -This project is a virtual Rubik's Cube implemented using HTML, CSS, and JavaScript. It provides a web-based interface for users to interact with and solve a Rubik's Cube puzzle. - - -## Description - -The Rubik-Cube is a classic three-dimensional puzzle that has challenged and entertained people for decades. This project brings the experience of solving a Rubik's Cube to the digital realm, allowing users to manipulate the cube's faces and solve it through a web browser. -## Run Locally - -Clone the project - -```bash - https://github.com/Dev-tanay/Rubik-Cube.git -``` - -Go to the project directory - -```bash - cd Rubik-Cube -``` -Click on the index.html - - -## Run locally using Docker - -### Prerequisites: -1. Docker installed on your local machine. -2. Basic understanding of Docker concepts such as containers, images, and Dockerfiles. -3. Familiarity with Docker commands for building and running containers. - -## Building Docker image - -Clone the repository to your local machine. -``` bash -https://github.com/Dev-tanay/Rubik-Cube.git -``` -Navigate to the root directory of the project - -``` bash -cd Rubik-Cube -``` -Open a terminal or command prompt. -Run the following command to build the Docker image: - -```bash -docker build -t rubik-cube:latest . -``` -## Running Docker Container - -Run the following command to start a Docker container from the image: - -``` bash -docker run -d -p 8080:80 rubik-cube:latest -``` -Access the Rubik's Cube application by opening a web browser and navigating to : - -``` link -http://localhost:8080 -``` - - - -### Link : -https://dev-tanay.github.io/Rubik-Cube/