Bissl docker kram zum laufen gebracht #70-1_docker_and_build #76

Merged
edraft merged 7 commits from #70-1_docker_and_build into #70 2022-10-20 20:49:40 +02:00
6 changed files with 11 additions and 9 deletions
Showing only changes of commit 48507962f8 - Show all commits

View File

@ -20,7 +20,7 @@
"prod": "export KDB_ENVIRONMENT=production; export KDB_NAME=KDB-Prod; cpl start;",
"stage": "export KDB_ENVIRONMENT=staging; export KDB_NAME=KDB-Stage; cpl start;",
"dev": "export KDB_ENVIRONMENT=development; export KDB_NAME=KDB-Dev; cpl start;",
"build-docker": "cpl b; docker-compose down; docker build -t kdb .",
"build-docker": "cpl b; docker-compose down; docker build -t kdb:kdb .",
"compose": "docker-compose up -d",
"docker": "cpl build-docker; cpl compose;"
}

View File

@ -23,10 +23,12 @@ services:
image: kdb/kdb-web:0.3
container_name: kdb_web_prod_1
depends_on:
- kdb_db_1
- kdb_prod_1
volumes:
- kdb_web_prod_1:/app
restart: 'no'
ports:
- '8042:80'
kdb_db_1:
image: mysql:latest

View File

@ -4,10 +4,7 @@ FROM python:3.10.7-bullseye
WORKDIR /app
COPY ./dist/bot/build/ .
RUN pip install cpl-core --extra-index-url https://pip.sh-edraft.de
RUN pip install cpl-discord --extra-index-url https://pip.sh-edraft.de
RUN pip install cpl-query --extra-index-url https://pip.sh-edraft.de
RUN pip install cpl-translation --extra-index-url https://pip.sh-edraft.de
RUN pip install -r requirements.txt --extra-index-url https://pip.sh-edraft.de
RUN apt-get update -y
RUN apt-get install nano -y

View File

@ -40,8 +40,8 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
"maximumWarning": "8mb",
"maximumError": "16mb"
},
{
"type": "anyComponentStyle",

2
kdb-web/dockerfile Normal file
View File

@ -0,0 +1,2 @@
FROM nginx:alpine
COPY ./dist/kdb-web/ /usr/share/nginx/html

View File

@ -9,7 +9,8 @@
"prebuild": "npm run update-version",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"
"test": "ng test",
"build-docker": "ng build; docker build -t kdb-web:kdb-web ."
},
"private": true,
"dependencies": {