Skip to content

Commit

Permalink
feat: makefile & update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
oats authored and LynnL4 committed Jan 18, 2024
1 parent 6dd80d3 commit bc20d9b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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) .
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit bc20d9b

Please sign in to comment.