Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM python:3

RUN apt update -y

LABEL Name=pythonplantsvszombies Version=0.0.1

RUN pip install pygame

WORKDIR /app/

RUN echo "Working Directory: /app/ "


RUN echo "Cloning the Marblexu's Repository"

RUN git clone https://github.com/marblexu/PythonPlantsVsZombies /app/

RUN echo "Almost done"

CMD python main.py >> /dev/null

RUN echo "Enjoy Playing!!!"
21 changes: 21 additions & 0 deletions run-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#bin/bash

RED='\033[0;31m'

GREEN='\033[0;32m'

NC='\033[0m'

echo -e "${GREEN}Plants VS Zombies${NC}"

echo -e "${RED}Creating a container instance for the game...${NC}"

xhost +

docker build -t sanmargparanjpe/plantsvszombie .

echo "${RED}Starting the instance...${NC}"

docker run -it --env="DISPLAY" --net=host sanmargparanjpe/plantsvszombie

echo "${RED}Quiting the Game${NC}"