diff --git a/Dockerfile b/Dockerfile new file mode 100755 index 0000000..e3370ca --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:artful + +RUN apt-get update + +# node stuff +RUN apt-get install -y nodejs npm + +COPY package.json package-lock.json /data/ +COPY src /data/src +COPY public /data/public + +RUN cd /data && npm i + +WORKDIR /data + +EXPOSE 8080 + +CMD ["node", "src/index.js"] + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..28de8f9 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ + +TAG=registry.rudin.io/x86/minetest-xp-highscore + +build: + docker build . -t $(TAG) + +push: + docker push $(TAG)