Docker Image
This commit is contained in:
commit
2d081d99f0
2 changed files with 24 additions and 0 deletions
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
dev:
|
||||||
|
build: ./docker
|
||||||
|
restart: "no"
|
||||||
|
volumes:
|
||||||
|
- "${PWD}:/srv/vue/lenaisten_bday"
|
||||||
|
ports:
|
||||||
|
- 8000:8000
|
||||||
|
- 8080:8080
|
13
docker/Dockerfile
Normal file
13
docker/Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
FROM node:lts-alpine
|
||||||
|
LABEL maintainer="joern-michael.miehe@lenaisten.de"
|
||||||
|
|
||||||
|
WORKDIR /srv/vue
|
||||||
|
|
||||||
|
RUN set -ex; \
|
||||||
|
yarn global add @vue/cli
|
||||||
|
|
||||||
|
USER node
|
||||||
|
|
||||||
|
VOLUME [ "/home/node" ]
|
||||||
|
|
||||||
|
CMD [ "vue", "ui", "-H", "0.0.0.0" ]
|
Loading…
Reference in a new issue