docker stuff

master
Thomas Rudin 2018-06-18 12:10:55 +02:00
parent 097460d83c
commit 4e7277d4f3
2 changed files with 27 additions and 0 deletions

19
Dockerfile Executable file
View File

@ -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"]

8
Makefile Normal file
View File

@ -0,0 +1,8 @@
TAG=registry.rudin.io/x86/minetest-xp-highscore
build:
docker build . -t $(TAG)
push:
docker push $(TAG)