Skip to content

Commit

Permalink
Merge pull request #567 from Sarthak027/main
Browse files Browse the repository at this point in the history
Added Docker containerization
  • Loading branch information
YadavAkhileshh authored Oct 28, 2024
2 parents d8c5e04 + e2f4cbb commit 6464be9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM nginx:alpine

WORKDIR /usr/share/nginx/html

RUN rm -rf ./*

COPY . /usr/share/nginx/html
EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,22 @@ To play this game on your own computer:

<img src="https://user-images.githubusercontent.com/74038190/212284100-561aa473-3905-4a80-b561-0d28506553ee.gif" width="900">

# 🐳 Docker Setup
To run this website on a container:

1. **Clone the Repository**:
```bash
git clone https://github.com/YOUR_GITHUB_USERNAME/Alien-Invasion-Defense.git
2. **Build the Docker image:**:
```bash
docker build -t <your_container_name> .
3. **Run the container:**:
```bash
docker run -d -p 8080:80 <your_container_name>
Now, the website will be accessible at http://localhost:8080.
<img src="https://user-images.githubusercontent.com/74038190/212284100-561aa473-3905-4a80-b561-0d28506553ee.gif" width="900">
### Complete this process in GitHub (in your browser)
Expand Down

0 comments on commit 6464be9

Please sign in to comment.