forked from sh-edraft.de/sh_discord_bot
Improved docker #70-1
This commit is contained in:
parent
7d4f3e9541
commit
48507962f8
@ -20,7 +20,7 @@
|
|||||||
"prod": "export KDB_ENVIRONMENT=production; export KDB_NAME=KDB-Prod; cpl start;",
|
"prod": "export KDB_ENVIRONMENT=production; export KDB_NAME=KDB-Prod; cpl start;",
|
||||||
"stage": "export KDB_ENVIRONMENT=staging; export KDB_NAME=KDB-Stage; 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;",
|
"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",
|
"compose": "docker-compose up -d",
|
||||||
"docker": "cpl build-docker; cpl compose;"
|
"docker": "cpl build-docker; cpl compose;"
|
||||||
}
|
}
|
||||||
|
@ -23,10 +23,12 @@ services:
|
|||||||
image: kdb/kdb-web:0.3
|
image: kdb/kdb-web:0.3
|
||||||
container_name: kdb_web_prod_1
|
container_name: kdb_web_prod_1
|
||||||
depends_on:
|
depends_on:
|
||||||
- kdb_db_1
|
- kdb_prod_1
|
||||||
volumes:
|
volumes:
|
||||||
- kdb_web_prod_1:/app
|
- kdb_web_prod_1:/app
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
|
ports:
|
||||||
|
- '8042:80'
|
||||||
|
|
||||||
kdb_db_1:
|
kdb_db_1:
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
|
@ -4,10 +4,7 @@ FROM python:3.10.7-bullseye
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./dist/bot/build/ .
|
COPY ./dist/bot/build/ .
|
||||||
|
|
||||||
RUN pip install cpl-core --extra-index-url https://pip.sh-edraft.de
|
RUN pip install -r requirements.txt --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 apt-get update -y
|
RUN apt-get update -y
|
||||||
RUN apt-get install nano -y
|
RUN apt-get install nano -y
|
||||||
|
|
||||||
|
@ -40,8 +40,8 @@
|
|||||||
"budgets": [
|
"budgets": [
|
||||||
{
|
{
|
||||||
"type": "initial",
|
"type": "initial",
|
||||||
"maximumWarning": "500kb",
|
"maximumWarning": "8mb",
|
||||||
"maximumError": "1mb"
|
"maximumError": "16mb"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "anyComponentStyle",
|
"type": "anyComponentStyle",
|
||||||
|
2
kdb-web/dockerfile
Normal file
2
kdb-web/dockerfile
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
FROM nginx:alpine
|
||||||
|
COPY ./dist/kdb-web/ /usr/share/nginx/html
|
@ -9,7 +9,8 @@
|
|||||||
"prebuild": "npm run update-version",
|
"prebuild": "npm run update-version",
|
||||||
"build": "ng build",
|
"build": "ng build",
|
||||||
"watch": "ng build --watch --configuration development",
|
"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,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
Reference in New Issue
Block a user