Skip to content

Commit c2347af

Browse files
feat: Adding build to docker compose
No need to use part regular builds and part docker compose, just in for a penny in for a pound. nullinside-development-group/nullinside-api#60
1 parent c201535 commit c2347af

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: nullinside-ui
22
services:
33
nullinside-ui:
4+
build:
5+
context: .
6+
args:
7+
- BUILD_ENVIRONMENT=prod
8+
tags:
9+
- "nullinside-ui:latest"
410
logging:
511
driver: loki
612
options:

go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export IP_ADDRESS=$(/sbin/ip -o -4 addr list eno2 | awk '{print $4}' | cut -d/ -f1)
22

33
cp /secrets/certs/* nginx/filesystem/etc/nginx/certs
4-
docker build -t nullinside-ui:latest --build-arg BUILD_ENVIRONMENT=prod --build-arg IP_ADDRESS=$IP_ADDRESS .
4+
docker compose build --build-arg IP_ADDRESS=$IP_ADDRESS .
55
docker compose down
66
docker compose up -d

0 commit comments

Comments
 (0)