pass build args

This commit is contained in:
Brandon Egger 2024-02-21 14:33:32 -06:00
parent a4c813069a
commit 0d67624b91
2 changed files with 16 additions and 3 deletions

View File

@ -18,4 +18,7 @@ NEXTAUTH_URL="http://localhost:3000"
DATABASE_URL= DATABASE_URL=
# Admin account details # Admin account details
ADMIN_PASSWORD="password" ADMIN_PASSWORD="password"
# Dictates the build process for the Dockerfile:
RUNNER_ENV=development

View File

@ -2,9 +2,19 @@ version: '3'
services: services:
uiowa-atr: uiowa-atr:
build: . build:
context: .
args:
- NEXTAUTH_SECRET
- JWT_SECRET
- NEXTAUTH_URL
- DATABASE_URL
- RUNNER_ENV
restart: always restart: always
ports: ports:
- "1234:3000" - "1234:3000"
environment: environment:
NODE_ENV: production - NEXTAUTH_SECRET
- NEXTAUTH_URL
- DATABASE_URL
- JWT_SECRET