Added support for Docker usage in development

This commit is contained in:
Gregory Ballantine 2024-02-23 13:27:29 -05:00
parent 75552eccee
commit 65fc2b753b
5 changed files with 21 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM node:20
WORKDIR /app
COPY package*.json ./
RUN npm install
VOLUME /app/node_modules
COPY . ./
ENTRYPOINT ["npm", "run", "dev"]

1
bin/docker-build.bat Normal file
View File

@ -0,0 +1 @@
docker build -t leviathan .

3
bin/docker-build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
docker build -t leviathan .

1
bin/docker-run.bat Normal file
View File

@ -0,0 +1 @@
docker run --rm -d -v "%cd%:/app" -p 3000:3000 --name leviathan leviathan

3
bin/docker-run.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
docker run --rm -d -v "$(pwd):/app" -p 3000:3000 --name leviathan leviathan