Compare commits

..

No commits in common. "8dd67c53e743b9433f024e143966e850c819e9f0" and "16b03bb5f2ddd331ac87b227355e1f48f0e1ceeb" have entirely different histories.

3 changed files with 2 additions and 34 deletions

View File

@ -1,2 +0,0 @@
.git
node_modules

View File

@ -1,10 +0,0 @@
FROM node:14-alpine as builder
COPY . ./
RUN npm ci && npm run build
FROM nginx
COPY --from=builder /dist/ /usr/share/nginx/html/

View File

@ -4,7 +4,7 @@
Vue3 Projekt: Vue3 Projekt:
## Project setup ## Project setup
``` ```
npm ci npm install
``` ```
### Compiles and hot-reloads for development ### Compiles and hot-reloads for development
@ -29,23 +29,3 @@ Vorraussetzung: Node & NPM
### Enviroment Variable ### Enviroment Variable
VUE_APP_API_URL ist die Enviroment Variable mit der die Adresse der API übergeben wird VUE_APP_API_URL ist die Enviroment Variable mit der die Adresse der API übergeben wird
## Docker
### Image bauen
```
docker build --tag ki_frontend .
```
### Container starten
```
docker run \
--name=ki_frontend \
-e VUE_APP_API_URL=http://localhost:5000 \
-p 8000:80 \
ki_frontend
```