Sign inSign up

dazdaz/sonic

By dazdaz

Updated over 8 years ago

Sonic the Hedgehog in Javascript, in a container, accessible via a web browser.

Image
1

50K+

dazdaz/sonic repository overview

Project originates from https://github.com/clarkeadg/opensonic-js, which is a "port of the OpenSonic Project wrote in Javascript".

The latest release of opensonic-js is 0.1.4 (September 19th, 2010). Containerised on 30th Jan 2017.

docker build -t sonic . docker tag sonic dazdaz/sonic docker push dazdaz/sonic docker run --name sonic -d -p 8888:8080 sonic az vm open-port --port 8888 --resource-group ubuntu1710-rg --name ubuntu1710 curl ifconfig.co Connect to http://:8888 using your web browser

Dockerfile below

FROM ubuntu:latest

MAINTAINER Darren [email protected]

LABEL version="1.0"
description="Sonic the Hedgehog in JS"
creationDate="12th Feb 2018"

WORKDIR /app

RUN apt-get update RUN apt-get install -y nodejs RUN apt-get install -y npm RUN ln -s /usr/bin/nodejs /usr/bin/node

#mkdir /.npm-global #npm config set prefix '/.npm-global' #export PATH=~/.npm-global/bin:$PATH #cd ~/.npm-global/lib/node_modules

RUN npm install -g http-server &&
npm install -g webpack &&
npm install -g babel-loader &&
npm install -g babel-core &&
npm install -g babel-preset-es2015 &&
npm install

ADD index.html /app/index.html ADD css/ /app/css/ ADD data/ /app/data/ ADD dist/ /app/dist/ ADD lib/ /app/lib/ ADD js/ /app/js/

EXPOSE 8888

CMD [ "http-server" ]

Tag summary

Content type

Image

Digest

Size

195.8 MB

Last updated

over 8 years ago

docker pull dazdaz/sonic