diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..43f7dd8 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +.PHONY: run build image push clean + +tag = latest +releaseName = sensecraft-web-toolkit + +ALL: run + +run: + yarn run dev + +build: + yarn run build + +image: + docker build -f ./docker/Dockerfile -t $(releaseName):$(tag) . \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile index 65d9b8c..d3b6a42 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /usr/SenseCraft-Web-Toolkit/ RUN yarn install \ && yarn run build -COPY default/nginx-default.conf /usr/SenseCraft-Web-Toolkit/nginx-default.conf +COPY ./docker/default/nginx-default.conf /usr/SenseCraft-Web-Toolkit/nginx-default.conf FROM nginx as runner COPY --from=builder /usr/SenseCraft-Web-Toolkit/dist /usr/share/nginx/html/