2023-01-19 16:04:10 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-01-31 17:59:33 -05:00
|
|
|
env_file=../../.env.prod
|
2023-01-19 16:04:10 -05:00
|
|
|
|
|
|
|
export $(cat $env_file | xargs)
|
|
|
|
|
2023-01-31 17:59:33 -05:00
|
|
|
docker build ../.. -t chessh/server
|
2023-01-29 00:56:10 -05:00
|
|
|
|
2023-01-19 16:04:10 -05:00
|
|
|
cd front
|
|
|
|
docker build \
|
2023-01-31 16:01:35 -05:00
|
|
|
--build-arg REACT_APP_DISCORD_OAUTH=${REACT_APP_DISCORD_OAUTH} \
|
2023-01-19 16:04:10 -05:00
|
|
|
--build-arg REACT_APP_SSH_SERVER=${REACT_APP_SSH_SERVER} \
|
|
|
|
--build-arg REACT_APP_SSH_PORT=${REACT_APP_SSH_PORT} \
|
|
|
|
. -t chessh/frontend
|