Added support for Docker usage in development
This commit is contained in:
parent
75552eccee
commit
65fc2b753b
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
1
bin/docker-build.bat
Normal file
@ -0,0 +1 @@
|
|||||||
|
docker build -t leviathan .
|
3
bin/docker-build.sh
Executable file
3
bin/docker-build.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker build -t leviathan .
|
1
bin/docker-run.bat
Normal file
1
bin/docker-run.bat
Normal file
@ -0,0 +1 @@
|
|||||||
|
docker run --rm -d -v "%cd%:/app" -p 3000:3000 --name leviathan leviathan
|
3
bin/docker-run.sh
Executable file
3
bin/docker-run.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker run --rm -d -v "$(pwd):/app" -p 3000:3000 --name leviathan leviathan
|
Loading…
Reference in New Issue
Block a user