aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index aad5f57..1cf7f4e 100755
--- a/build.sh
+++ b/build.sh
@@ -1,16 +1,14 @@
#!/bin/bash
env_file=.env.prod
-started_in=$PWD
export $(cat $env_file | xargs)
+docker build . -t chessh/server
+
cd front
docker build \
--build-arg REACT_APP_GITHUB_OAUTH=${REACT_APP_GITHUB_OAUTH} \
--build-arg REACT_APP_SSH_SERVER=${REACT_APP_SSH_SERVER} \
--build-arg REACT_APP_SSH_PORT=${REACT_APP_SSH_PORT} \
. -t chessh/frontend
-
-cd $started_in
-docker build . -t chessh/server