From 0d67624b91e4fe654621c699c2a10394183fe6ab Mon Sep 17 00:00:00 2001 From: Brandon Egger Date: Wed, 21 Feb 2024 14:33:32 -0600 Subject: [PATCH] pass build args --- .env.example | 5 ++++- docker-compose.yml | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index cbe6652..34073f3 100644 --- a/.env.example +++ b/.env.example @@ -18,4 +18,7 @@ NEXTAUTH_URL="http://localhost:3000" DATABASE_URL= # Admin account details -ADMIN_PASSWORD="password" \ No newline at end of file +ADMIN_PASSWORD="password" + +# Dictates the build process for the Dockerfile: +RUNNER_ENV=development \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 5f7a026..3b4a0aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,9 +2,19 @@ version: '3' services: uiowa-atr: - build: . + build: + context: . + args: + - NEXTAUTH_SECRET + - JWT_SECRET + - NEXTAUTH_URL + - DATABASE_URL + - RUNNER_ENV restart: always ports: - "1234:3000" environment: - NODE_ENV: production + - NEXTAUTH_SECRET + - NEXTAUTH_URL + - DATABASE_URL + - JWT_SECRET