digitalemil / pacman

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pacman

Pac-Man

Install dependencies

npm install

Getting started

npm run start

Development

npm run dev

Create Application Container Image

Docker Container Image

The Dockerfile performs the following steps:

  1. It is based on Node.js LTS Version 6 (Boron).
  2. It then clones the Pac-Man game into the configured application directory.
  3. Exposes port 8080 for the web server.
  4. Starts the Node.js application using npm start.

To build the image run:

cd docker
docker build -t <registry>/<user>/pacman-nodejs-app .

You can test the image by running:

docker run -p 8000:8080 <registry>/<user>/pacman-nodejs-app

And going to http://localhost:8000/ to see if you get the Pac-Man game.

Once you're satisfied you can push the image to the container registry.

docker push <registry>/<user>/pacman-nodejs-app

Building using an s2i image

s2i build . centos/nodejs-6-centos7 pacman

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 71.8%Language:CSS 15.5%Language:HTML 11.1%Language:Shell 1.1%Language:Dockerfile 0.3%Language:Pug 0.3%