2023-01-19 01:18:14 -05:00
|
|
|
#!/bin/bash
|
2023-01-18 23:08:56 -05:00
|
|
|
|
2023-01-19 01:18:14 -05:00
|
|
|
env_file=.env.prod
|
|
|
|
started_in=$PWD
|
2023-01-18 23:08:56 -05:00
|
|
|
|
2023-01-19 01:18:14 -05:00
|
|
|
export $(cat $env_file | xargs)
|
|
|
|
|
|
|
|
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
|