add Docker files
This commit is contained in:
parent
c8ceec5d0c
commit
ec1b86a35f
|
@ -0,0 +1,6 @@
|
||||||
|
FROM node:14
|
||||||
|
WORKDIR /app
|
||||||
|
COPY npm-run-serve.sh /usr/bin/npm-run-serve.sh
|
||||||
|
RUN chmod +x /usr/bin/npm-run-serve.sh
|
||||||
|
CMD [ "npm-run-serve.sh" ]
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
frontend:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./Dockerfile.dev
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
cd /app
|
||||||
|
npm install
|
||||||
|
npm run serve
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"lockfileVersion": 1
|
||||||
|
}
|
Reference in New Issue