add Docker files

This commit is contained in:
Andreas Zweili 2021-05-05 17:44:53 +02:00
parent c8ceec5d0c
commit ec1b86a35f
4 changed files with 24 additions and 0 deletions

6
Dockerfile.dev Normal file
View File

@ -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" ]

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
version: "3"
services:
frontend:
build:
context: .
dockerfile: ./Dockerfile.dev
ports:
- 8080:8080
volumes:
- .:/app

4
npm-run-serve.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
cd /app
npm install
npm run serve

3
package-lock.json generated Normal file
View File

@ -0,0 +1,3 @@
{
"lockfileVersion": 1
}