diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3f6abff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM node:10-alpine + +WORKDIR /app + +ADD package.json . +RUN npm install +ADD index.js . + +CMD npm start diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..48cd5dd --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +.DEFAULT_GOAL := default + +IMAGE := docker.cloud.cluster.fun/averagemarcus/cors-proxy:latest + +.PHONY: docker-build # Build the docker image +docker-build: + @docker build -t $(IMAGE) . + +.PHONY: publish # Publish the docker image to the Artifactory registry +publish: + @docker push $(IMAGE) + +.PHONY: help # Show this list of commands +help: + @grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1: \2/' | expand -t20 + +default: docker-build publish +