emacs-collab/docker/build.sh

23 lines
463 B
Bash
Raw Normal View History

2017-06-14 22:45:15 +00:00
#!/bin/sh
2017-06-15 11:31:29 +00:00
ORIG_DIR=`pwd`
rm -r tmp
2017-06-15 09:26:01 +00:00
mkdir tmp
cp ../init_passwd.rb ./tmp/
cp ../run_server.sh ./tmp/
cp ../eshell ./tmp/
cp ../Gemfile* ./tmp/
2017-06-15 11:31:29 +00:00
# TeX Live
#if [ "$(uname)" == "Darwin" ]; then
# cd texlive/bin/x86_64-darwin
#elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# cd texlive/bin/x86_64-linux
#fi
#./tlmgr update --all
cd $ORIG_DIR
cp -r texlive ./tmp/
rm -r tmp/texlive/bin/x86_64-darwin
2017-06-14 22:45:15 +00:00
docker build -t emacs-collab:latest .
2017-06-15 09:26:01 +00:00
rm -R tmp