emacs-collab/docker/build.sh

24 lines
493 B
Bash
Executable File

#!/bin/sh
ORIG_DIR=`pwd`
rm -r tmp
mkdir tmp
cp ../init_passwd.rb ./tmp/
cp ../run_server.sh ./tmp/
cp ../eshell ./tmp/
cp ../Gemfile* ./tmp/
cp ../site-start.el ./tmp/
# 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
docker build -t emacs-collab:latest .
rm -R tmp