summaryrefslogtreecommitdiff
path: root/build.sh
blob: 1cf7f4e63e52f73f5cc6acadc368a52da9523809 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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_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