added docker build script for deploying

This commit is contained in:
John O'Keefe 2024-09-23 12:26:35 -04:00
parent af3c779b32
commit 406c508de0
3 changed files with 18 additions and 1 deletions

15
.dockerignore Normal file
View File

@ -0,0 +1,15 @@
node_modules
Dockerfile*
docker-compose*
.dockerignore
.git
.gitignore
README.md
LICENSE
.vscode
Makefile
helm-charts
.env
.editorconfig
.idea
coverage*

2
Dockerfile Normal file
View File

@ -0,0 +1,2 @@
FROM nginx:stable-alpine-perl
COPY ./dist /usr/share/nginx/html

View File

@ -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"
},