2023-01-19 16:04:10 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
env_file=.env.prod
|
|
|
|
|
|
|
|
export $(cat $env_file | xargs)
|
|
|
|
|
2023-01-29 00:56:10 -05:00
|
|
|
docker build . -t chessh/server
|
|
|
|
|
2023-01-19 16:04:10 -05:00
|
|
|
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
|