summaryrefslogtreecommitdiff
path: root/buildscripts/docker/build.sh
diff options
context:
space:
mode:
authorLogan Hunt <logan.hunt@usu.edu>2023-01-31 15:59:33 -0700
committerLogan Hunt <logan.hunt@usu.edu>2023-01-31 15:59:33 -0700
commit387ac72d1bdf44f882f3f1ae23b9415884234cbe (patch)
tree11d484f5b7fabddc6bae9af67f0174d5f3ff0b01 /buildscripts/docker/build.sh
parente3604eaeb8bbabb48418db45fd7611722428ae2e (diff)
downloadchessh-387ac72d1bdf44f882f3f1ae23b9415884234cbe.tar.gz
chessh-387ac72d1bdf44f882f3f1ae23b9415884234cbe.zip
Distributed build tasks!!
Diffstat (limited to 'buildscripts/docker/build.sh')
-rwxr-xr-xbuildscripts/docker/build.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/buildscripts/docker/build.sh b/buildscripts/docker/build.sh
new file mode 100755
index 0000000..9852f20
--- /dev/null
+++ b/buildscripts/docker/build.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+env_file=../../.env.prod
+
+export $(cat $env_file | xargs)
+
+docker build ../.. -t chessh/server
+
+cd front
+docker build \
+ --build-arg REACT_APP_DISCORD_OAUTH=${REACT_APP_DISCORD_OAUTH} \
+ --build-arg REACT_APP_SSH_SERVER=${REACT_APP_SSH_SERVER} \
+ --build-arg REACT_APP_SSH_PORT=${REACT_APP_SSH_PORT} \
+ . -t chessh/frontend