From 406c508de01299155b5b4ed2317be40ebca1d1fb Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 23 Sep 2024 12:26:35 -0400 Subject: [PATCH] added docker build script for deploying --- .dockerignore | 15 +++++++++++++++ Dockerfile | 2 ++ package.json | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f965aed --- /dev/null +++ b/.dockerignore @@ -0,0 +1,15 @@ +node_modules +Dockerfile* +docker-compose* +.dockerignore +.git +.gitignore +README.md +LICENSE +.vscode +Makefile +helm-charts +.env +.editorconfig +.idea +coverage* diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2bc7b31 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx:stable-alpine-perl +COPY ./dist /usr/share/nginx/html diff --git a/package.json b/package.json index a7ca6ff..b225db5 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ }, "scripts": { "start": "bunx --bun vite", - "buildProject": "bunx --bun vite build", + "build": "bunx --bun vite build", "serve": "vite preview", "serveprod": "serve ./dist/index.html" },