chessh/build.sh

15 lines
327 B
Bash
Raw Normal View History

#!/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