add a Docker environment for better portability
parent
68f4aa7168
commit
33682677c3
|
@ -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:
|
||||
- ./2021-03-27_routing-01-starting-setup/:/app
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
cd /app
|
||||
npm install
|
||||
npm run serve
|
Reference in New Issue